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

A Flutter plugin for receiving Windows power setting notification.

power_setting_windows #

A Flutter plugin for receiving Windows power setting notification.

Getting Started #

Listen for power setting notifications:

class _MyAppState extends State<MyApp> with PowerSettingObserver {
  @override
  void initState() {
    super.initState();
    PowerSettingWindows.addObserver(this);
  }

  @override
  void dispose() {
    PowerSettingWindows.removeObserver(this);
    super.dispose();
  }

  @override
  void didChangeConsoleDisplayState(ConsoleDisplayState state) {
    ...
  }

  @override
  void didChangeSessionDisplayState(SessionDisplayState state) {
    ...
  }

  @override
  void didChangeSessionUserState(SessionUserState state) {
    ...
  }
}
2
likes
0
points
33
downloads

Publisher

verified publisherdeephow.com

Weekly Downloads

A Flutter plugin for receiving Windows power setting notification.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface, win32

More

Packages that depend on power_setting_windows