battery_insights 0.1.1
battery_insights: ^0.1.1 copied to clipboard
Measure real battery drain of your Flutter app on Android — per flow (checkout, camera, calls) and for every user across foreground and background — with no drain of its own.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add battery_insightsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
battery_insights: ^0.1.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:battery_insights/battery_insights.dart';