Realtime Battery Indicator

GitHub stars pub package

A realtime good looking customizable battery indicator for all platforms.

Screenshot

It can detect if the device is charging or not and can turn battery level to red colour if battery level is less than 20%. More customizations are coming soon.

Charging

Installation

Add realtime_battery_indicator: ^1.0.1 in your project's pubspec.yaml:

dependencies:
  realtime_battery_indicator: ^1.0.1

Usage

Import realtime_battery_indicator in your dart file:

import 'package:realtime_battery_indicator/realtime_battery_indicator.dart';

Default Usage

BatteryIndicator();

Custom Usage

To hide battery level, use showBatteryLevel:

BatteryIndicator(
    showBatteryLevel: false;
);

Author