# battery_plus **Repository Path**: flutter_revise/battery_plus ## Basic Information - **Project Name**: battery_plus - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-21 - **Last Updated**: 2026-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # battery_plus [![pub package](https://img.shields.io/pub/v/battery_plus.svg)](https://pub.dev/packages/battery_plus) [![pub points](https://img.shields.io/pub/points/battery_plus?color=2E8B57&label=pub%20points)](https://pub.dev/packages/battery_plus/score) [![battery_plus](https://github.com/fluttercommunity/plus_plugins/actions/workflows/battery_plus.yaml/badge.svg)](https://github.com/fluttercommunity/plus_plugins/actions/workflows/battery_plus.yaml) [](https://flutter.dev/docs/development/packages-and-plugins/favorites) A Flutter plugin to access various information about the battery of the device the app is running on. ## Platform Support | Android | iOS | macOS | Web | Linux | Windows | | :-----: | :-: | :---: | :-: | :---: | :----: | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ## Requirements - Flutter >=3.22.0 - Dart >=3.4.0 <4.0.0 - iOS >=12.0 - macOS >=10.14 - Java 17 - Kotlin 2.2.0 - Android Gradle Plugin >=8.12.1 - Gradle wrapper >=8.13 ## Usage Add `battery_plus` as a dependency in your pubspec.yaml file. ### Example ```dart // Import package import 'package:battery_plus/battery_plus.dart'; // Instantiate it var battery = Battery(); // Access current battery level print(await battery.batteryLevel); // Be informed when the state (full, charging, discharging) changes battery.onBatteryStateChanged.listen((BatteryState state) { // Do something with new state }); // Check if device in battery save mode // Currently available on Android, iOS, macOS and Windows platforms only print(await battery.isInBatterySaveMode); ``` ## Learn more - [API Documentation](https://pub.dev/documentation/battery_plus/latest/battery_plus/battery_plus-library.html)