battery_flutter 0.0.1 copy "battery_flutter: ^0.0.1" to clipboard
battery_flutter: ^0.0.1 copied to clipboard

A plugin get device battery

0.0.1 #

  • Initial release of battery_flutter plugin.
  • Supports getting battery level on:
    • ✅ Android (using BatteryManager)
    • ✅ iOS (using UIDevice)
  • Exposes:
    • getBattery() → returns current battery percentage.
    • getPlatformVersion() → returns platform version (debug/testing purpose).
  • Includes working example app in /example folder.