animated_battery_gauge 0.1.0
animated_battery_gauge: ^0.1.0 copied to clipboard
A simple and customizable animated battery gauge widget.
animated_battery_gauge widget #
Very simple to use animated battery gauge widget.
Screenshots: #

Features #
Both horizontal and vertical animated widgets are supported.
Getting started #
Please see example app under example folder.
Usage #
It is as simple as using BatteryGauge or AnimatedBatteryGauge as your child widget.
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text('Animated Battery Demo'),
),
child: Center(
child: AnimatedBatteryGauge(
duration: Duration(seconds: 2),
value: 60,
size: Size(150, 70),
borderColor: CupertinoColors.systemGrey,
valueColor: CupertinoColors.activeGreen,
hasGauge: true,
hasText: true,
),
),
);
}