Showing
9 changed files
with
20 additions
and
339 deletions
.metadata
deleted
100644 → 0
| 1 | -# This file tracks properties of this Flutter project. | ||
| 2 | -# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
| 3 | -# | ||
| 4 | -# This file should be version controlled and should not be manually edited. | ||
| 5 | - | ||
| 6 | -version: | ||
| 7 | - revision: 3bf91b543678d6dc677a9c3f1f2ea32a769ddbcb | ||
| 8 | - channel: master | ||
| 9 | - | ||
| 10 | -project_type: plugin |
| @@ -2,7 +2,11 @@ | @@ -2,7 +2,11 @@ | ||
| 2 | 2 | ||
| 3 | This plugin allows you to enable and toggle the Android and iOS screen wakelock, which prevents the screen from turning off automatically. | 3 | This plugin allows you to enable and toggle the Android and iOS screen wakelock, which prevents the screen from turning off automatically. |
| 4 | 4 | ||
| 5 | -## Getting Started | 5 | +## Usage |
| 6 | + | ||
| 7 | +To use this plugin, follow the [installing guide](https://pub.dev/packages/wakelock#-installing-tab-). | ||
| 8 | + | ||
| 9 | +### Implementation | ||
| 6 | 10 | ||
| 7 | Everything in this plugin is controlled via the [`Wakelock` class](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock-class.html). | 11 | Everything in this plugin is controlled via the [`Wakelock` class](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock-class.html). |
| 8 | If you want to enable the wakelock, you can simply call [`Wakelock.enableWakelock`](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock/enableWakelock.html) and to disable it, you can use [`Wakelock.disableWakelock`](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock/disableWakelock.html): | 12 | If you want to enable the wakelock, you can simply call [`Wakelock.enableWakelock`](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock/enableWakelock.html) and to disable it, you can use [`Wakelock.disableWakelock`](https://pub.dev/documentation/wakelock/latest/wakelock/Wakelock/disableWakelock.html): |
| 1 | -# Miscellaneous | ||
| 2 | *.class | 1 | *.class |
| 3 | *.log | 2 | *.log |
| 4 | *.pyc | 3 | *.pyc |
| @@ -8,19 +7,10 @@ | @@ -8,19 +7,10 @@ | ||
| 8 | .buildlog/ | 7 | .buildlog/ |
| 9 | .history | 8 | .history |
| 10 | .svn/ | 9 | .svn/ |
| 11 | - | ||
| 12 | -# IntelliJ related | ||
| 13 | *.iml | 10 | *.iml |
| 14 | *.ipr | 11 | *.ipr |
| 15 | *.iws | 12 | *.iws |
| 16 | .idea/ | 13 | .idea/ |
| 17 | - | ||
| 18 | -# The .vscode folder contains launch configuration and tasks you configure in | ||
| 19 | -# VS Code which you may wish to be included in version control, so this line | ||
| 20 | -# is commented out by default. | ||
| 21 | -#.vscode/ | ||
| 22 | - | ||
| 23 | -# Flutter/Dart/Pub related | ||
| 24 | **/doc/api/ | 14 | **/doc/api/ |
| 25 | .dart_tool/ | 15 | .dart_tool/ |
| 26 | .flutter-plugins | 16 | .flutter-plugins |
| @@ -28,8 +18,6 @@ | @@ -28,8 +18,6 @@ | ||
| 28 | .pub-cache/ | 18 | .pub-cache/ |
| 29 | .pub/ | 19 | .pub/ |
| 30 | /build/ | 20 | /build/ |
| 31 | - | ||
| 32 | -# Android related | ||
| 33 | **/android/**/gradle-wrapper.jar | 21 | **/android/**/gradle-wrapper.jar |
| 34 | **/android/.gradle | 22 | **/android/.gradle |
| 35 | **/android/captures/ | 23 | **/android/captures/ |
| @@ -37,8 +25,6 @@ | @@ -37,8 +25,6 @@ | ||
| 37 | **/android/gradlew.bat | 25 | **/android/gradlew.bat |
| 38 | **/android/local.properties | 26 | **/android/local.properties |
| 39 | **/android/**/GeneratedPluginRegistrant.java | 27 | **/android/**/GeneratedPluginRegistrant.java |
| 40 | - | ||
| 41 | -# iOS/XCode related | ||
| 42 | **/ios/**/*.mode1v3 | 28 | **/ios/**/*.mode1v3 |
| 43 | **/ios/**/*.mode2v3 | 29 | **/ios/**/*.mode2v3 |
| 44 | **/ios/**/*.moved-aside | 30 | **/ios/**/*.moved-aside |
| @@ -63,13 +49,12 @@ | @@ -63,13 +49,12 @@ | ||
| 63 | **/ios/Flutter/flutter_assets/ | 49 | **/ios/Flutter/flutter_assets/ |
| 64 | **/ios/ServiceDefinitions.json | 50 | **/ios/ServiceDefinitions.json |
| 65 | **/ios/Runner/GeneratedPluginRegistrant.* | 51 | **/ios/Runner/GeneratedPluginRegistrant.* |
| 66 | - | ||
| 67 | -# Exceptions to above rules. | ||
| 68 | !**/ios/**/default.mode1v3 | 52 | !**/ios/**/default.mode1v3 |
| 69 | !**/ios/**/default.mode2v3 | 53 | !**/ios/**/default.mode2v3 |
| 70 | !**/ios/**/default.pbxuser | 54 | !**/ios/**/default.pbxuser |
| 71 | !**/ios/**/default.perspectivev3 | 55 | !**/ios/**/default.perspectivev3 |
| 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages | 56 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages |
| 73 | - | ||
| 74 | wakelock_example.iml | 57 | wakelock_example.iml |
| 75 | -.idea | ||
| 58 | +.idea | ||
| 59 | +.metadata | ||
| 60 | +pubspec.lock |
example/.metadata
deleted
100644 → 0
| 1 | -# This file tracks properties of this Flutter project. | ||
| 2 | -# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
| 3 | -# | ||
| 4 | -# This file should be version controlled and should not be manually edited. | ||
| 5 | - | ||
| 6 | -version: | ||
| 7 | - revision: 3bf91b543678d6dc677a9c3f1f2ea32a769ddbcb | ||
| 8 | - channel: master | ||
| 9 | - | ||
| 10 | -project_type: app |
example/pubspec.lock
deleted
100644 → 0
| 1 | -# Generated by pub | ||
| 2 | -# See https://dart.dev/tools/pub/glossary#lockfile | ||
| 3 | -packages: | ||
| 4 | - async: | ||
| 5 | - dependency: transitive | ||
| 6 | - description: | ||
| 7 | - name: async | ||
| 8 | - url: "https://pub.dartlang.org" | ||
| 9 | - source: hosted | ||
| 10 | - version: "2.2.0" | ||
| 11 | - boolean_selector: | ||
| 12 | - dependency: transitive | ||
| 13 | - description: | ||
| 14 | - name: boolean_selector | ||
| 15 | - url: "https://pub.dartlang.org" | ||
| 16 | - source: hosted | ||
| 17 | - version: "1.0.5" | ||
| 18 | - charcode: | ||
| 19 | - dependency: transitive | ||
| 20 | - description: | ||
| 21 | - name: charcode | ||
| 22 | - url: "https://pub.dartlang.org" | ||
| 23 | - source: hosted | ||
| 24 | - version: "1.1.2" | ||
| 25 | - collection: | ||
| 26 | - dependency: transitive | ||
| 27 | - description: | ||
| 28 | - name: collection | ||
| 29 | - url: "https://pub.dartlang.org" | ||
| 30 | - source: hosted | ||
| 31 | - version: "1.14.11" | ||
| 32 | - cupertino_icons: | ||
| 33 | - dependency: "direct main" | ||
| 34 | - description: | ||
| 35 | - name: cupertino_icons | ||
| 36 | - url: "https://pub.dartlang.org" | ||
| 37 | - source: hosted | ||
| 38 | - version: "0.1.2" | ||
| 39 | - flutter: | ||
| 40 | - dependency: "direct main" | ||
| 41 | - description: flutter | ||
| 42 | - source: sdk | ||
| 43 | - version: "0.0.0" | ||
| 44 | - flutter_test: | ||
| 45 | - dependency: "direct dev" | ||
| 46 | - description: flutter | ||
| 47 | - source: sdk | ||
| 48 | - version: "0.0.0" | ||
| 49 | - matcher: | ||
| 50 | - dependency: transitive | ||
| 51 | - description: | ||
| 52 | - name: matcher | ||
| 53 | - url: "https://pub.dartlang.org" | ||
| 54 | - source: hosted | ||
| 55 | - version: "0.12.5" | ||
| 56 | - meta: | ||
| 57 | - dependency: transitive | ||
| 58 | - description: | ||
| 59 | - name: meta | ||
| 60 | - url: "https://pub.dartlang.org" | ||
| 61 | - source: hosted | ||
| 62 | - version: "1.1.6" | ||
| 63 | - path: | ||
| 64 | - dependency: transitive | ||
| 65 | - description: | ||
| 66 | - name: path | ||
| 67 | - url: "https://pub.dartlang.org" | ||
| 68 | - source: hosted | ||
| 69 | - version: "1.6.2" | ||
| 70 | - pedantic: | ||
| 71 | - dependency: transitive | ||
| 72 | - description: | ||
| 73 | - name: pedantic | ||
| 74 | - url: "https://pub.dartlang.org" | ||
| 75 | - source: hosted | ||
| 76 | - version: "1.8.0+1" | ||
| 77 | - quiver: | ||
| 78 | - dependency: transitive | ||
| 79 | - description: | ||
| 80 | - name: quiver | ||
| 81 | - url: "https://pub.dartlang.org" | ||
| 82 | - source: hosted | ||
| 83 | - version: "2.0.3" | ||
| 84 | - sky_engine: | ||
| 85 | - dependency: transitive | ||
| 86 | - description: flutter | ||
| 87 | - source: sdk | ||
| 88 | - version: "0.0.99" | ||
| 89 | - source_span: | ||
| 90 | - dependency: transitive | ||
| 91 | - description: | ||
| 92 | - name: source_span | ||
| 93 | - url: "https://pub.dartlang.org" | ||
| 94 | - source: hosted | ||
| 95 | - version: "1.5.5" | ||
| 96 | - stack_trace: | ||
| 97 | - dependency: transitive | ||
| 98 | - description: | ||
| 99 | - name: stack_trace | ||
| 100 | - url: "https://pub.dartlang.org" | ||
| 101 | - source: hosted | ||
| 102 | - version: "1.9.3" | ||
| 103 | - stream_channel: | ||
| 104 | - dependency: transitive | ||
| 105 | - description: | ||
| 106 | - name: stream_channel | ||
| 107 | - url: "https://pub.dartlang.org" | ||
| 108 | - source: hosted | ||
| 109 | - version: "2.0.0" | ||
| 110 | - string_scanner: | ||
| 111 | - dependency: transitive | ||
| 112 | - description: | ||
| 113 | - name: string_scanner | ||
| 114 | - url: "https://pub.dartlang.org" | ||
| 115 | - source: hosted | ||
| 116 | - version: "1.0.4" | ||
| 117 | - term_glyph: | ||
| 118 | - dependency: transitive | ||
| 119 | - description: | ||
| 120 | - name: term_glyph | ||
| 121 | - url: "https://pub.dartlang.org" | ||
| 122 | - source: hosted | ||
| 123 | - version: "1.1.0" | ||
| 124 | - test_api: | ||
| 125 | - dependency: transitive | ||
| 126 | - description: | ||
| 127 | - name: test_api | ||
| 128 | - url: "https://pub.dartlang.org" | ||
| 129 | - source: hosted | ||
| 130 | - version: "0.2.5" | ||
| 131 | - typed_data: | ||
| 132 | - dependency: transitive | ||
| 133 | - description: | ||
| 134 | - name: typed_data | ||
| 135 | - url: "https://pub.dartlang.org" | ||
| 136 | - source: hosted | ||
| 137 | - version: "1.1.6" | ||
| 138 | - vector_math: | ||
| 139 | - dependency: transitive | ||
| 140 | - description: | ||
| 141 | - name: vector_math | ||
| 142 | - url: "https://pub.dartlang.org" | ||
| 143 | - source: hosted | ||
| 144 | - version: "2.0.8" | ||
| 145 | - wakelock: | ||
| 146 | - dependency: "direct dev" | ||
| 147 | - description: | ||
| 148 | - path: ".." | ||
| 149 | - relative: true | ||
| 150 | - source: path | ||
| 151 | - version: "0.0.1" | ||
| 152 | -sdks: | ||
| 153 | - dart: ">=2.2.2 <3.0.0" |
pubspec.lock
deleted
100644 → 0
| 1 | -# Generated by pub | ||
| 2 | -# See https://dart.dev/tools/pub/glossary#lockfile | ||
| 3 | -packages: | ||
| 4 | - async: | ||
| 5 | - dependency: transitive | ||
| 6 | - description: | ||
| 7 | - name: async | ||
| 8 | - url: "https://pub.dartlang.org" | ||
| 9 | - source: hosted | ||
| 10 | - version: "2.2.0" | ||
| 11 | - boolean_selector: | ||
| 12 | - dependency: transitive | ||
| 13 | - description: | ||
| 14 | - name: boolean_selector | ||
| 15 | - url: "https://pub.dartlang.org" | ||
| 16 | - source: hosted | ||
| 17 | - version: "1.0.5" | ||
| 18 | - charcode: | ||
| 19 | - dependency: transitive | ||
| 20 | - description: | ||
| 21 | - name: charcode | ||
| 22 | - url: "https://pub.dartlang.org" | ||
| 23 | - source: hosted | ||
| 24 | - version: "1.1.2" | ||
| 25 | - collection: | ||
| 26 | - dependency: transitive | ||
| 27 | - description: | ||
| 28 | - name: collection | ||
| 29 | - url: "https://pub.dartlang.org" | ||
| 30 | - source: hosted | ||
| 31 | - version: "1.14.11" | ||
| 32 | - flutter: | ||
| 33 | - dependency: "direct main" | ||
| 34 | - description: flutter | ||
| 35 | - source: sdk | ||
| 36 | - version: "0.0.0" | ||
| 37 | - flutter_test: | ||
| 38 | - dependency: "direct dev" | ||
| 39 | - description: flutter | ||
| 40 | - source: sdk | ||
| 41 | - version: "0.0.0" | ||
| 42 | - matcher: | ||
| 43 | - dependency: transitive | ||
| 44 | - description: | ||
| 45 | - name: matcher | ||
| 46 | - url: "https://pub.dartlang.org" | ||
| 47 | - source: hosted | ||
| 48 | - version: "0.12.5" | ||
| 49 | - meta: | ||
| 50 | - dependency: transitive | ||
| 51 | - description: | ||
| 52 | - name: meta | ||
| 53 | - url: "https://pub.dartlang.org" | ||
| 54 | - source: hosted | ||
| 55 | - version: "1.1.6" | ||
| 56 | - path: | ||
| 57 | - dependency: transitive | ||
| 58 | - description: | ||
| 59 | - name: path | ||
| 60 | - url: "https://pub.dartlang.org" | ||
| 61 | - source: hosted | ||
| 62 | - version: "1.6.2" | ||
| 63 | - pedantic: | ||
| 64 | - dependency: transitive | ||
| 65 | - description: | ||
| 66 | - name: pedantic | ||
| 67 | - url: "https://pub.dartlang.org" | ||
| 68 | - source: hosted | ||
| 69 | - version: "1.8.0+1" | ||
| 70 | - quiver: | ||
| 71 | - dependency: transitive | ||
| 72 | - description: | ||
| 73 | - name: quiver | ||
| 74 | - url: "https://pub.dartlang.org" | ||
| 75 | - source: hosted | ||
| 76 | - version: "2.0.3" | ||
| 77 | - sky_engine: | ||
| 78 | - dependency: transitive | ||
| 79 | - description: flutter | ||
| 80 | - source: sdk | ||
| 81 | - version: "0.0.99" | ||
| 82 | - source_span: | ||
| 83 | - dependency: transitive | ||
| 84 | - description: | ||
| 85 | - name: source_span | ||
| 86 | - url: "https://pub.dartlang.org" | ||
| 87 | - source: hosted | ||
| 88 | - version: "1.5.5" | ||
| 89 | - stack_trace: | ||
| 90 | - dependency: transitive | ||
| 91 | - description: | ||
| 92 | - name: stack_trace | ||
| 93 | - url: "https://pub.dartlang.org" | ||
| 94 | - source: hosted | ||
| 95 | - version: "1.9.3" | ||
| 96 | - stream_channel: | ||
| 97 | - dependency: transitive | ||
| 98 | - description: | ||
| 99 | - name: stream_channel | ||
| 100 | - url: "https://pub.dartlang.org" | ||
| 101 | - source: hosted | ||
| 102 | - version: "2.0.0" | ||
| 103 | - string_scanner: | ||
| 104 | - dependency: transitive | ||
| 105 | - description: | ||
| 106 | - name: string_scanner | ||
| 107 | - url: "https://pub.dartlang.org" | ||
| 108 | - source: hosted | ||
| 109 | - version: "1.0.4" | ||
| 110 | - term_glyph: | ||
| 111 | - dependency: transitive | ||
| 112 | - description: | ||
| 113 | - name: term_glyph | ||
| 114 | - url: "https://pub.dartlang.org" | ||
| 115 | - source: hosted | ||
| 116 | - version: "1.1.0" | ||
| 117 | - test_api: | ||
| 118 | - dependency: transitive | ||
| 119 | - description: | ||
| 120 | - name: test_api | ||
| 121 | - url: "https://pub.dartlang.org" | ||
| 122 | - source: hosted | ||
| 123 | - version: "0.2.5" | ||
| 124 | - typed_data: | ||
| 125 | - dependency: transitive | ||
| 126 | - description: | ||
| 127 | - name: typed_data | ||
| 128 | - url: "https://pub.dartlang.org" | ||
| 129 | - source: hosted | ||
| 130 | - version: "1.1.6" | ||
| 131 | - vector_math: | ||
| 132 | - dependency: transitive | ||
| 133 | - description: | ||
| 134 | - name: vector_math | ||
| 135 | - url: "https://pub.dartlang.org" | ||
| 136 | - source: hosted | ||
| 137 | - version: "2.0.8" | ||
| 138 | -sdks: | ||
| 139 | - dart: ">=2.2.2 <3.0.0" |
| 1 | name: wakelock | 1 | name: wakelock |
| 2 | description: Wakelock is a Flutter plugin that allows you to easily toggle the Android and iOS screen wakelock on or off in order to prevent the screen from automatically turning off. | 2 | description: Wakelock is a Flutter plugin that allows you to easily toggle the Android and iOS screen wakelock on or off in order to prevent the screen from automatically turning off. |
| 3 | -version: 0.1.0+1 | 3 | +version: 0.1.0+2 |
| 4 | author: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> | 4 | author: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> |
| 5 | homepage: https://github.com/creativecreatorormaybenot/wakelock | 5 | homepage: https://github.com/creativecreatorormaybenot/wakelock |
| 6 | 6 |
-
Please register or login to post a comment