16 changed files with 74 additions and 85 deletions
@ -1,37 +0,0 @@ |
|||||||
# 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 - Version is outdated |
|
||||||
wakelock: |
|
||||||
git: |
|
||||||
url: https://github.com/keygenqt/wakelock.git |
|
||||||
ref: wakelock_windows_git |
|
||||||
path: wakelock |
|
||||||
|
|
||||||
wakelock_aurora: |
|
||||||
git: |
|
||||||
url: https://gitlab.com/omprussia/flutter/flutter-plugins.git |
|
||||||
ref: master |
|
||||||
path: packages/wakelock/wakelock_aurora |
|
||||||
``` |
|
||||||
|
|
||||||
***.dart** |
|
||||||
|
|
||||||
```dart |
|
||||||
import 'package:wakelock/wakelock.dart'; |
|
||||||
|
|
||||||
// The following line will enable wakelock. |
|
||||||
Wakelock.enable(); |
|
||||||
|
|
||||||
// The next line disables the wakelock again. |
|
||||||
Wakelock.disable(); |
|
||||||
``` |
|
@ -0,0 +1,32 @@ |
|||||||
|
# wakelock_plus_aurora |
||||||
|
|
||||||
|
The Aurora implementation of [`wakelock_plus`](https://pub.dev/packages/wakelock_plus). |
||||||
|
|
||||||
|
## Usage |
||||||
|
This package is not an _endorsed_ implementation of `wakelock_plus`. |
||||||
|
Therefore, you have to include `wakelock_plus_aurora` alongside `wakelock_plus` as dependencies in your `pubspec.yaml` file. |
||||||
|
|
||||||
|
**pubspec.yaml** |
||||||
|
|
||||||
|
```yaml |
||||||
|
dependencies: |
||||||
|
wakelock_plus: ^1.1.1 |
||||||
|
wakelock_plus_aurora: |
||||||
|
git: |
||||||
|
url: https://gitlab.com/omprussia/flutter/flutter-plugins.git |
||||||
|
ref: master |
||||||
|
path: packages/wakelock_plus/wakelock_plus_aurora |
||||||
|
``` |
||||||
|
|
||||||
|
***.dart** |
||||||
|
|
||||||
|
```dart |
||||||
|
import 'package:wakelock_plus/wakelock_plus.dart'; |
||||||
|
// ... |
||||||
|
|
||||||
|
// The following line will enable the Android and iOS wakelock. |
||||||
|
WakelockPlus.enable(); |
||||||
|
|
||||||
|
// The next line disables the wakelock again. |
||||||
|
WakelockPlus.disable(); |
||||||
|
``` |
Loading…
Reference in new issue