PackageTrack
Sign in Get early access

battery_plus

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

7.1.1 354K downloads/mo #625 most downloaded on pub.dev fluttercommunity/plus_plugins

What this package is like to depend on

Last release 1 months ago

15 Jul 2026

Release timing varies

gaps range from 8 days to 10 months

Nearly every release is documented

notes for 52 of 52 stable releases

1 version withdrawn

withdrawn after publishing

6 years old

54 releases · first in 2020

3 releases in the last 12 months

see the full history below

Release timeline

54 releases · Apr 2020 to Jul 2026
2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 54
  1. 7.1.1 15 Jul 2026
    Release notes

    Publish battery_plus-v7.1.1.

    Open source →
    Release notes
    • FIX(battery_plus): raise Apple platform minimums in SPM manifests to match FlutterFramework (#3919). (e7275a38)
    • DOCS(battery_plus): Update min iOS and MacOS in README (#3927). (2ea120cc)
    Open source →
  2. 7.1.0 26 Jun 2026
    Release notes
    • REFACTOR(battery_plus): Migrate from Groovy to Kotlin DSL in Android part (#3906). (104df18a)
    • FEAT(battery_plus): Updated Swift Package Manager setup for Flutter 3.44 (#3909). (a9409774)
    • FEAT(battery_plus): Add support of built-in Kotlin (#3901). (93d366dd)
    Open source →
  3. 7.0.0 11 Sep 2025
    Release notes

    Note: This release has breaking changes.

    On Android plugin now requires the following:

    • Android Gradle Plugin >=8.12.1
    • Gradle wrapper >=8.13
    • Kotlin 2.2.0
    • DOCS(all): replace MacOS by macOS in package READMEs (#3658). (72b6234c)
    • BREAKING FEAT(battery_plus): Change Android compile SDK, update Android build config (#3666). (c2fe29ab)
    Open source →
  4. 6.2.3 11 Aug 2025
    Release notes
    • FIX(battery_plus): Do not call hidden flag on Samsung with Android versions >= 12 (#3641). (a8764705)
    • FIX(battery_plus): batteryMonitoringEnabled should be set false when cancel on iOS (#3634). (9597aab6)
    Open source →
  5. 6.2.2 16 Jun 2025
    Release notes
    • FIX(battery_plus): Improve battery save mode check on Xiaomi devices (#3555). (32ba69ba)
    Open source →
  6. 6.2.1 12 Dec 2024
    Release notes
    • REFACTOR(all): Use range of flutter_lints for broader compatibility (#3371). (8a303add)
    • FIX(battery_plus): Incorrect minimum version configuration. (#3364). (56fc9847)
    Open source →
  7. 6.2.0 23 Oct 2024
    Release notes
    • FEAT(battery_plus): Add battery save mode check on MacOS (#3332). (0e8c9223)
    Open source →
  8. 6.1.0 17 Oct 2024
    Release notes
    • FEAT(battery_plus): Add Swift Package Manager support (#3154). (cba3279a)
    Open source →
  9. 6.0.4 09 Oct 2024
    Release notes
    Open source →
  10. 6.0.3 09 Aug 2024
    Release notes
    • CHORE(battery_plus): Update to package:web to ^1.0.0 (#3103). (cf534eec)
    • FIX(battery_plus): Fix type conversion (#3159). (1145af14)
    • FIX(battery_plus): Fix crash when retrieving battery level on desktop Mac. (#3155). (36e7dd16)
    • DOCS(battery_plus): Update plugin requirements (#3158). (c0353107)
    Open source →
  11. 6.0.2 29 Jul 2024
    Release notes
    • REFACTOR(all): Remove website files, configs, mentions (#3018). (ecc57146)
    • FIX(all): changed homepage url in pubspec.yaml (#3099). (66613656)
    Open source →
  12. 6.0.1 08 Apr 2024
    Release notes
    • REFACTOR(battery_plus): Migrate Android example to use the new plugins declaration (#2772). (740a5df2)
    • FIX(battery_plus): Fix return value of getBattery to be nullable (#2745). (4d5b950e)
    Open source →
  13. 6.0.0 20 Mar 2024
    Release notes

    Note: This release has breaking changes.

    In this release plugin migrated to package:web, meaning that it now supports WASM!

    Plugin now requires the following:

    • Flutter >=3.19.0

    • Dart >=3.3.0

    • compileSDK 34 for Android part

    • Java 17 for Android part

    • Gradle 8.4 for Android part

    • BREAKING FEAT(battery_plus): Migrate to package:web (#2720). (21ccfa45)

    • BREAKING BUILD(battery_plus): Target Java 17 on Android (#2727). (ca2c35ab)

    • BREAKING BUILD(battery_plus): Update to target and compile SDK 34 (#2702). (fc59745)

    • BREAKING REFACTOR(battery_plus): bump MACOSX_DEPLOYMENT_TARGET from 10.11 to 10.14 (#2592). (fe07964b)

    • FIX(battery_plus): Add iOS Privacy Info (#2580). (9f36a001)

    Open source →
  14. 5.0.3 07 Feb 2024
    Release notes
    • FIX(battery_plus): battery state always unknown on iOS (#2481). (ea892fb9)
    Open source →
  15. 5.0.2 12 Dec 2023
    Release notes
    • FIX(battery_plus): Return correct state enum value on Android for not charging state (#2451). (68ddda39)
    Open source →
  16. 5.0.1 01 Dec 2023
    Release notes

    Note: This release has breaking changes. There is a new state for battery available on Android, MacOS and Linux platforms. Also, MacOS implementation was updated to provide more accurate battery status. Be sure to test if it affects your MacOS app.

    • BREAKING FIX(battery_plus): Implement not_charging battery state (#2275). (6595e035)
    • BREAKING FEAT(battery_plus): Introduce connected_not_charging state on MacOS (#2399). (78f44bf4)
    • BREAKING FEAT(battery_plus): Introduce not_charging state on Linux (#2400). (42ef02bd)
    • DOCS(battery_plus): Improve documentation on battery states (#2402). (baeb886f)
    • BREAKING FIX(battery_plus): Bump iOS min target to 12 and update example app (#2401). (25ef7928)
    Open source →
  17. 5.0.0 09 Oct 2023 withdrawn
    Release notes

    This release was retracted due to due to (#2251).

    Open source →
  18. 4.1.0 14 Oct 2023
    Release notes

    Info: This release is a replacement for release 5.0.0, which was retracted due to issue (#2251). As breaking change was reverted the major release was also reverted in favor of this one.

    • FIX(battery_plus): Change Kotlin version from 1.9.10 to 1.7.22 (#2257). (f5244e36)
    • FIX(battery_plus): Revert bump of compileSDK to 34 (#2228). (e834f582)
    • FEAT(battery_plus): Remove deprecated VALID_ARCHS iOS property (#2025). (09318317)
    Open source →
  19. 4.0.2 02 Aug 2023
    Release notes
    • FIX(battery_plus): Regenerate iOS and MacOS example apps (#1873). (18deeff3)
    • DOCS(all): Fix example links on pub.dev (#1863). (d726035a)
    Open source →
  20. 4.0.1 19 May 2023
    Release notes
    • FIX(battery_plus): Use ContextCompat on Android to register broadcast receiver (#1811). (b901615c)
    • FIX: Add jvm target compatibility to Kotlin plugins (#1798). (1b7dc432)
    • DOCS(all): Update READMEs (#1828). (57d9c884)
    Open source →
  21. 4.0.0 09 May 2023
    Release notes

    Note: This release has breaking changes.

    • CHORE(battery_plus): Update Flutter dependencies, set Flutter >=3.3.0 and Dart to >=2.18.0 <4.0.0
    • BREAKING FIX(all): Add support of namespace property to support Android Gradle Plugin (AGP) 8 (#1727). Projects with AGP < 4.2 are not supported anymore. It is highly recommended to update at least to AGP 7.0 or newer.
    • BREAKING CHORE(battery_plus): Bump min Android to 4.4 (API 19) and iOS to 11, update podspec file (#1783).
    • REFACTOR(battery_plus): Update example app to use Material 3.
    • FIX(battery_plus): Close StreamController on Web and Linux when done (#1744).
    Open source →
  22. 3.0.6 27 Apr 2023
    Release notes
    • FIX(all): Revert addition of namespace to avoid build fails on old AGPs (#1725).
    Open source →
  23. 3.0.5 26 Apr 2023
    Release notes
    • FIX(battery_plus): Huawei power save mode check (#1708).
    • FIX(battery_plus): Add compatibility with AGP 8 (Android Gradle Plugin) (#1700).
    Open source →
  24. 3.0.4 10 Apr 2023
    Release notes
    • REFACTOR(all): Remove all manual dependency_overrides (#1628).
    • FIX(all): Fix depreciations for flutter 3.7 and 2.19 dart (#1529).
    Open source →
  25. 3.0.3 09 Feb 2023
    Release notes
    • FIX: broadcast stream (#1479).
    • DOCS: Updates for READMEs and website pages (#1389).
    Open source →
  26. 3.0.2 20 Oct 2022
    Release notes
    • FIX: Increase min Flutter version to fix dartPluginClass registration (#1275).
    Open source →
  27. 3.0.1 18 Oct 2022
    Release notes
    • FIX: lint warnings - add missing dependency for tests (#1233).
    Open source →
  28. 3.0.0 10 Oct 2022
    Release notes

    Note: This release has breaking changes.

    • BREAKING REFACTOR: platform implementation refactor into a single package (#1169).
    Open source →
  29. 2.2.2 07 Oct 2022
    Release notes
    • FIX: batteryState always return unknown on API < 26 (#1120).
    Open source →
  30. 2.2.1 03 Oct 2022
    Release notes
    • Fix: batteryState always return unknown on API < 26
    Open source →
  31. 2.2.0 28 Sep 2022
    Release notes
    • Android: Migrate to Kotlin
    • Android: Bump targetSDK to 33 (Android 13)
    • Android: Update dependencies, build config updates
    • Update Flutter dependencies
    Open source →
  32. 2.1.4 31 May 2022
    Release notes
    • Update flutter_lints to 2.0.1
    • Update dev dependencies
    Open source →
  33. 2.1.4+1 10 Aug 2022
    Release notes
    • Add issue_tracker link.
    Open source →
  34. 2.1.3 20 Feb 2022
    Release notes
    • Update battery_plus_linux dependency
    • Set min Flutter version to 1.20.0 for all platforms
    Open source →
  35. 2.1.2 16 Feb 2022
    Release notes
    • Fix embedding issue in example
    • (Android) Update Kotlin and Gradle plugin
    Open source →
  36. 2.1.1 31 Jan 2022
    Release notes
    • (Android) Fix null pointer exception in isInBatterySaveMode() on Samsung devices with One UI
    Open source →
  37. 2.1.0 16 Jan 2022
    Release notes
    • Add batteryState getter
    Open source →
  38. 2.0.2 15 Dec 2021
    Release notes
    • Update Flutter dependencies
    Open source →
  39. 2.0.1 05 Oct 2021
    Release notes
    • Upgrade Android compile SDK version
    • Several code improvements
    Open source →
  40. 2.0.0 05 Oct 2021
    Release notes
    • Remove deprecated method registerWith (of Android v1 embedding)
    Open source →
  41. 1.2.0 01 Oct 2021
    Release notes
    • migrate integration_test to flutter sdk
    Open source →
  42. 1.1.1 19 Aug 2021
    Release notes
    • Fix: Add break statements for unknown battery state in Android and iOS implementations
    Open source →
  43. 1.1.0 16 Jul 2021
    Release notes
    • Android, iOS, Windows : add getter for power save mode state
    Open source →
  44. 1.0.2 15 Jun 2021
    Release notes
    • Android: migrate to mavenCentral
    Open source →
  45. 1.0.1 28 Apr 2021
    Release notes
    • Improve documentation
    Open source →
  46. 1.0.0 02 Mar 2021
    Release notes
    • Migrate to null safety
    Open source →
  47. 1.0.0-nullsafety.0 22 Feb 2021 pre-release

    Nothing published for this version

  48. 0.10.1 16 Feb 2021
    Release notes
    • Address pub score
    Open source →
  49. 0.10.0 16 Feb 2021
    Release notes
    • Added "unknown" battery state for batteryless systems.
    Open source →
  50. 0.9.1 16 Feb 2021
    Release notes
    • Send initial battery status for Android
    Open source →
  51. 0.9.0 12 Dec 2020
    Release notes
    • Add Linux support (battery_plus_linux)
    • Add macOS support (battery_plus_macos)
    • Add Windows support (battery_plus_windows)
    • Rename method channel to avoid conflicts
    Open source →
  52. 0.8.0 12 Oct 2020
    Release notes
    • Transfer to plus-plugins monorepo
    Open source →
  53. 0.0.1 20 Apr 2020
    Release notes
    • Initial release
    Open source →
  54. 0.0.1+1 02 Oct 2020
    Release notes
    • Updated README
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive