flutter_battery_level 0.0.2
flutter_battery_level: ^0.0.2 copied to clipboard
Flutter plugin to retrieve battery level information on Android and iOS devices.
flutter_battery_level #
A Flutter plugin to access battery information, including the battery level, state, and low power mode status. It supports both Android and iOS platforms.
Features #
- Get the current battery level.
- Get the battery state (charging, discharging, full, unknown).
- Check if the device is in low power mode.
- Stream battery state changes for real-time updates.
Installation #
To use this plugin in your Flutter project, add flutter_battery_level
as a dependency in your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
flutter_battery_level: ^0.0.1