android_battery_level_plus 0.0.3
android_battery_level_plus: ^0.0.3 copied to clipboard
A Flutter plugin to access the device's current battery level on Android.
0.0.3 #
- New Feature: Charging State Detection - Added
isCharging()to check if the device is currently connected to power. - New Feature: Detailed Charging Info - Added
getChargingStatus()which returns a map containing the current status (e.g., Charging, Full, Discharging) and the power source (e.g., AC Charger, USB, Wireless). - Native Enhancements - Improved the Android Java implementation to properly handle system battery broadcasts for more accurate data.
- Bug Fixes - Fixed communication errors between Dart and Java when passing complex data structures.
- Example Update - Updated the example app UI to demonstrate all new charging and power source features.
0.0.2 #
- Cleaned up example code by removing boilerplate comments.
- Updated package version to 0.0.2.
0.0.1 #
- Initial release of the battery_plugin.
- Added support for fetching battery level on Android.