nexus_battery_flutter 0.0.1
nexus_battery_flutter: ^0.0.1 copied to clipboard
A Flutter plugin to get battery level on Android and iOS using platform channels.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add nexus_battery_flutterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
nexus_battery_flutter: ^0.0.1Alternatively, 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:nexus_battery_flutter/battery_plugin.dart';
import 'package:nexus_battery_flutter/battery_plugin_method_channel.dart';
import 'package:nexus_battery_flutter/battery_plugin_platform_interface.dart';