desktop_screenstate 0.0.3 copy "desktop_screenstate: ^0.0.3" to clipboard
desktop_screenstate: ^0.0.3 copied to clipboard

Flutter package to detect desktop screen is on or off.

desktop_screenstate #

(https://pub.dev/packages/desktop_screenstate)

Allow your flutter desktop application to check whether the screen is on or off.

Getting Started #

  1. Add desktop_screenstate to your pubspec.yaml.
  desktop_screenstate: $latest_version
  1. Then you can use DesktopScreenState.instance.isActive to listen window active event.
final ValueListenable<ScreenState> event = DesktopScreenState.instance.isActive;

final ScreenState active = event.value;

event.addListener(() {
  debugPrint("screen is on or off: ${event.value}");
});

value false means screen is on and value true means screen is off

LICENSE #

see LICENSE file

4
likes
0
points
152
downloads

Publisher

verified publisheralihassan143cool.blogspot.com

Weekly Downloads

Flutter package to detect desktop screen is on or off.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on desktop_screenstate