animated_battery_gauge 0.1.0 copy "animated_battery_gauge: ^0.1.0" to clipboard
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,
      ),
    ),
  );
}
4
likes
150
points
72
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and customizable animated battery gauge widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on animated_battery_gauge