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

PlatformWindows

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(WinConsoleDisplayState state) {
    ...
  }

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

  @override
  void didChangeSessionUserState(WinSessionUserState state) {
    ...
  }
}
2
likes
150
points
40
downloads

Publisher

verified publisherdeephow.com

Weekly Downloads

A Flutter plugin for receiving Windows power setting notification.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface, win32

More

Packages that depend on power_setting_windows

Packages that implement power_setting_windows