Skip to main content

Battery Plus Overview#

Battery plus ๐Ÿ”‹ is a Flutter plugin that helps you get information about the current state of the device battery on which the app is running on, for instance, the percentage of the battery and charging status.

note

Battery plus is going to replace the original Battery plugin, if you have been using it, it's better to switch to this one.

Get started#

1. Add it to your project#

pubspec.yaml
dependencies:
flutter:
sdk: flutter
battery_plus: "^1.1.1"

2. Download dependency#

$ flutter pub get

3. Rebuild the app#

$ flutter run

Next steps#

  1. Read the usage page to see examples of how to use the package.