battery 1.0.7
battery: ^1.0.7

Flutter Android iOS

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

180
likes
90 / 110
pub points
95 %
popularity

We analyzed this package on Dec 2, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 3 out of 5 API elements (60.0 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Found 6 issues. Showing the first 2:

Consider supporting multiple platforms:

Package does not support Flutter platform Web

Because:

  • package:battery/battery.dart that declares support for platforms: Android, iOS
Pass static analysis
30 / 30

30/30 points: code has no errors, warnings, lints, or formatting issues

Support up-to-date dependencies
10 / 20

0/10 points: All of the package dependencies are supported in the latest version

  • Could not run pub outdated: pub get failed:
Because battery depends on integration_test from path which doesn't exist (could not find package integration_test at "../../integration_test"), version solving failed.

10/10 points: Package supports latest stable Dart and Flutter SDKs

180
likes
90
pub points
95%
popularity

Publisher

flutter.dev

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

battery_platform_interface, flutter, meta

More

Packages that depend on battery