cupertino_battery_indicator

Creator: coderz1093

Last updated:

0 purchases

cupertino_battery_indicator Image
cupertino_battery_indicator Images

Languages

Categories

Add to Cart

Description:

cupertino battery indicator

This package provides a single widget: BatteryIndicator.
It resembles the battery icon used in the macOS menu bar, but is very customizable.
You can provide any value it should display.

Features #

Looks like a stylized battery laying on its side
Shows any percentage given to it
Customizable colors and sizes

Getting started #
Just include the BatteryIndicator library:
import 'package:cupertino_battery_indicator/cupertino_battery_indicator.dart';
copied to clipboard
Usage #
Widget buildIndicator(value) =>
Row(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.only(right: 16.0),
child: BatteryIndicator(value: value),
),
Text('${(value * 100).ceil()}%'),
],
);
copied to clipboard
Additional information #
Feel free to open issues with suggestions or feature requests.
PRs are welcome!
License #
Licensed under the MIT license. Read more here.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.