flutter_keepscreenon 0.0.1+1 copy "flutter_keepscreenon: ^0.0.1+1" to clipboard
flutter_keepscreenon: ^0.0.1+1 copied to clipboard

discontinued
outdatedDart 1 only

A package can help you to prevent your flutter app's screen going to sleep programmatically.

flutter_keepscreenon #

pub package

A package can help you to prevent your flutter app's screen going to sleep programmatically.

Getting Started #

Installation #

Add this to your pubspec.yaml (or create it):

dependencies:
  flutter_keepscreenon: any

Then run the flutter tooling:

flutter packages get

Example #

try {
  await FlutterKeepscreenon.activateKeepScreenOn; // activate
  // await FlutterKeepscreenon.deactivateKeepScreenOn; // deactivate
} on PlatformException catch (e) {
  print(e);
}

Details in example/ folder.

Note that #

I dont have macos so i cant test the ios part.
If you can use it in ios or patch it, please let me know.

0
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A package can help you to prevent your flutter app's screen going to sleep programmatically.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_keepscreenon