realtime_battery_indicator 1.0.0 realtime_battery_indicator: ^1.0.0 copied to clipboard
A realtime good looking customizable battery indicator for all platforms.
Realtime Battery Indicator #
A realtime good looking customizable battery indicator for all platforms.
Installation #
Add realtime_battery_indicator: ^1.0.0
in your project's pubspec.yaml:
dependencies:
realtime_battery_indicator: ^1.0.0
Usage #
Import realtime_battery_indicator
in your dart file:
import 'package:realtime_battery_indicator/realtime_battery_indicator.dart';
Then use checkAppUpdate
in your code:
checkAppUpdate function won't show any dialog in iOS Simulator. Source
Default Usage #
BatteryIndicator();
Custom Usage #
To hide battery level, use showBatteryLevel
:
BatteryIndicator(
showBatteryLevel: false;
);