Этот репозиторий содержит Flutter плагины для платформы ОС Аврора.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# wakelock_aurora
|
|
|
|
|
|
|
|
The Aurora implementation of [`wakelock`](https://pub.dev/packages/wakelock).
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
This package is not an _endorsed_ implementation of `wakelock`.
|
|
|
|
Therefore, you have to include `wakelock_aurora` alongside `wakelock` as dependencies in your `pubspec.yaml` file.
|
|
|
|
|
|
|
|
**pubspec.yaml**
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
dependencies:
|
|
|
|
wakelock: ^0.6.2
|
|
|
|
wakelock_aurora:
|
|
|
|
path: # path to folder with plugin
|
|
|
|
```
|
|
|
|
|
|
|
|
***.dart**
|
|
|
|
|
|
|
|
```dart
|
|
|
|
import 'package:wakelock/wakelock.dart';
|
|
|
|
|
|
|
|
// The following line will enable wakelock.
|
|
|
|
Wakelock.enable();
|
|
|
|
|
|
|
|
// The next line disables the wakelock again.
|
|
|
|
Wakelock.disable();
|
|
|
|
```
|