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