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

outdated

Flutter package to detect desktop screen is on or off.

screenstate #

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

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

Getting Started #

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

final bool 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