Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

A package can help you to keep the device's screen on programmatically without any permission.

License

Notifications You must be signed in to change notification settings

mchome/flutter_keepscreenon

Repository files navigation

flutter_keepscreenon

pub package

A package can help you to keep the device's screen on programmatically without any permission.

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.keepScreenOn(true);
} on PlatformException catch (e) {
  print(e);
}

Details in example/ folder.

About

A package can help you to keep the device's screen on programmatically without any permission.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages