FLUTTER ECOSYSTEM

battery_plus

Flutter plugin for accessing information about the battery state(full, charging, discharging).

Latest version
7.1.1
30-day downloads
410K
Likes
563
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The battery_plus package is a Flutter plugin that provides access to real-time battery state information across multiple platforms, including Android, iOS, Web, macOS, Windows, and Linux. It allows developers to retrieve details such as battery level, charging status, and whether the device is plugged in. Designed for cross-platform consistency, it simplifies integration into apps requiring battery monitoring features. The plugin is maintained by the Flutter Community and supports both null-safe and modern Dart practices.

Use cases
  • Monitoring device battery level in real time
  • Detecting when a device is charging or discharging
  • Building power-saving features in apps
  • Displaying battery status in UI components
  • Creating low-battery alerts
Key features
  • Cross-platform battery state access
  • Real-time battery level updates
  • Support for all major desktop and mobile platforms
  • Simple, intuitive API
  • Maintained by Flutter Community
Suitable for
  • Apps needing battery health monitoring
  • Utility and system tools
  • Battery optimization features
  • Cross-platform applications
  • Developers seeking reliable device state data
Considerations
  • Requires appropriate platform permissions on some OSes
  • Web support may have limited accuracy
  • Battery state updates depend on device hardware
  • Not suitable for high-precision battery analytics
  • Limited to basic battery state information
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add battery_plus

Categories

Dependencies

Dependency list 4 items
  • battery_plus_platform_interface^2.0.1
  • meta^1.8.0
  • upower^0.7.0
  • web^1.0.0

Source repository

Related projects

Rankings