Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 412 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 412 Bytes

flutter_screen_keep_on

A Flutter plugin to keep screen on. AndroidX migrated.

Usage

To use this plugin, add screen_keep_on as a dependency in your pubspec.yaml file.

Example

// Import package
import 'package:screen_keep_on/screen_keep_on.dart';

// Set Keep Screen On
ScreenKeepOn.turnOn(on);

// Get IsOn
bool _isOn = await ScreenKeepOn.isOn;