android_battery_level_plus 0.0.3 copy "android_battery_level_plus: ^0.0.3" to clipboard
android_battery_level_plus: ^0.0.3 copied to clipboard

PlatformAndroid

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.
6
likes
150
points
133
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to access the device's current battery level on Android.

Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on android_battery_level_plus

Packages that implement android_battery_level_plus