Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_wakelock
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
creativecreatorormaybenot
2021-01-12 17:12:45 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2021-01-12 17:12:45 +0000
Commit
d6f675e69063f733646af48cc2083014fbeb4fdd
d6f675e6
1 parent
aab86db7
Add supported platforms (#84)
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
8 deletions
README.md
wakelock/CHANGELOG.md
wakelock/README.md
wakelock/pubspec.yaml
README.md
View file @
d6f675e
# Wakelock [](https://github.com/creativecreatorormaybenot/wakelock) [](https://pub.dev/packages/wakelock) [](https://twitter.com/creativemaybeno)
Wakelock is Flutter plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on Android, iOS, and web.
Wakelock is Flutter plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping.
## Supported platforms
| Platform |
`wakelock`
support |
| :------- | :----------------: |
| Android | ✅ |
| iOS | ✅ |
| Web | ✅ |
| macOS | ⚒ work in progress |
| Windows | ❎ planned |
| Linux | ❎ planned |
## Getting started
...
...
wakelock/CHANGELOG.md
View file @
d6f675e
## 0.3.0-nullsafety.3
*
Add supported platforms to README.
## 0.3.0-nullsafety.2
*
Indicated that no permissions are required for using the
`wakelock`
plugin in the README.
...
...
wakelock/README.md
View file @
d6f675e
# wakelock [](https://pub.dev/packages/wakelock) [](https://github.com/creativecreatorormaybenot/wakelock) [](https://twitter.com/creativemaybeno)
Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on
Android, iOS, and web.
Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping
---
The plugin allows you to enable and toggle the screen wakelock on Android, iOS, and web, which
prevents the screen from turning off automatically.
The plugin allows you to enable and toggle the screen wakelock, which prevents the screen from turning off automatically.
Essentially, this allows you to keep the device awake, i.e. prevent the device from sleeping.
## Supported platforms
| Platform |
`wakelock`
support |
| :------- | :----------------: |
| Android | ✅ |
| iOS | ✅ |
| Web | ✅ |
| macOS | ⚒ work in progress |
| Windows | ❎ planned |
| Linux | ❎ planned |
## Usage
To use this plugin, follow the
[
installing guide
](
https://pub.dev/packages/wakelock/install
)
.
The
`wakelock`
plugin
**does not require any special *permissions**
*
on any platform :)
This is because it only enables the
*screen wakelock*
and not any partial (CPU) wakelocks that would keep the app alive in the background.
The
`wakelock`
plugin
**does not require any special _permissions_**
on any platform :)
This is because it only enables the _screen wakelock_ and not any partial (CPU) wakelocks that would keep the app alive in the background.
### Implementation
...
...
wakelock/pubspec.yaml
View file @
d6f675e
...
...
@@ -2,7 +2,7 @@ name: wakelock
description
:
>-2
Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on
Android, iOS, and web.
v
ersion: 0.3.0-nullsafety.
2
v
ersion: 0.3.0-nullsafety.
3
h
omepage: https://github.com/creativecreatorormaybenot/wakelock/tree/master/wakelock
e
nvironment:
...
...
Please
register
or
login
to post a comment