flutter_electricity_meter 0.0.1 copy "flutter_electricity_meter: ^0.0.1" to clipboard
flutter_electricity_meter: ^0.0.1 copied to clipboard

Electricity meter to display the current value

Features #

This is the UI with the animation as Electricity meter and you can customize it by yourself.

Demo #

Gif

Getting started #

The first thing you need to do is initialize the ElectricityMeterManager with the maximum value.

final manager = ElectricityMeterManager(maxValue: 100000);

After that you can setup in your widget by this.

ElectricityMeter(
    width: MediaQuery.of(context).size.width,
    manager: manager,
    colors: const [
        Color(0xFFfb0505),
        Color(0xFFfb7607),
        Color(0xFFf4ea07),
        Color(0xFF61f205),
        Color(0xFF00f6cb),
    ],
)

Usage #

When you want to update the value, you can call this function "startRotate" in the manager with the integer input.

Or you want to change the value from the current value, you can call this function "onChange".

2
likes
130
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Electricity meter to display the current value

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_electricity_meter