battery_indicator 0.0.5
battery_indicator: ^0.0.5 copied to clipboard

Flutter Android iOS

A battery indicator widget.

flutter_battery_indicator #

A battery indicator widget

Usage #

To use this plugin, add battery_indicator as a dependency in your pubspec.yaml file.

Example #

// Import package
import 'package:battery_indicator/battery_indicator.dart';

// Instantiate it
var batteryIndicator = new BatteryIndicator(
                                style: BatteryIndicatorStyle.values[_styleIndex],
                                colorful: _colorful,
                                showPercentNum: _showPercentNum,
                                mainColor: _color,
                                size: _size,
                                ratio: _ratio,
                                showPercentSlide: _showPercentSlide,

// and then add it to your layout .

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.