desktop_keep_screen_on

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

desktop keep screen on

desktop_keep_screen_on #
A Flutter plugin to keep the screen on in desktop platforms.









Windows



Linux



macOS




Getting Started #
Add this to your package's pubspec.yaml file:
dependencies:
desktop_keep_screen_on: ^0.0.1
copied to clipboard
Usage #
import 'package:desktop_keep_screen_on/desktop_keep_screen_on.dart';

void foo() async {
// Keep screen on
await DesktopKeepScreenOn.setPreventSleep(true);

// Do something...

// Allow screen to sleep
await DesktopKeepScreenOn.setPreventSleep(false);
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.