android_battery_level_plus 0.0.2 copy "android_battery_level_plus: ^0.0.2" to clipboard
android_battery_level_plus: ^0.0.2 copied to clipboard

PlatformAndroid

A Flutter plugin to access the device's current battery level on Android.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add android_battery_level_plus

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  android_battery_level_plus: ^0.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:android_battery_level_plus/battery_plugin.dart';
import 'package:android_battery_level_plus/battery_plugin_method_channel.dart';
import 'package:android_battery_level_plus/battery_plugin_platform_interface.dart';
6
likes
160
points
133
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to access the device's current battery level on Android.

Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on android_battery_level_plus

Packages that implement android_battery_level_plus