battery_monitor 0.1.0
battery_monitor: ^0.1.0 copied to clipboard
A Flutter plugin that streams every battery percentage change natively on iOS and Android, with optional state-change notifications (charging, discharging, full).
0.1.0 #
Breaking changes
- Removed
thresholdparameter fromstartMonitoring. The plugin now streams every battery percentage change instead of firing a one-shot threshold event. BatteryEventType.thresholdReachedreplaced withBatteryEventType.levelChanged.
New behaviour
- A
levelChangedevent is emitted on every 1% battery level change on both Android and iOS.
0.0.1 #
- Initial release.
- Native battery level monitoring for iOS and Android.
- Configurable threshold notification (fires once per discharge cycle).
- Optional battery state-change notifications.
getBatteryLevel()one-shot query.