powerman_win32 0.1.0 copy "powerman_win32: ^0.1.0" to clipboard
powerman_win32: ^0.1.0 copied to clipboard

PlatformWindows

A plugin to listen to Win32 power events such as AC power state, display on/off, and suspend/resume.

powerman_win32 #

A plugin to listen to Win32 power events such as AC power state, display on/off, and suspend/resume.

Getting Started #

Fristly, install the plugin:

flutter pub add powerman_win32

Add the codes to listen to events:

StreamBuilder(
  stream: PowermanWin32.instance.systemPowerStatus,
  builder: (context, snapshot) => Text(snapshot.data?.toString() ?? '-'),
),
0
likes
140
pub points
0%
popularity

Publisher

verified publisherespresso3389.jp

A plugin to listen to Win32 power events such as AC power state, display on/off, and suspend/resume.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface, rxdart

More

Packages that depend on powerman_win32