Skip to content
pubscout

cupertino_battery_indicator

1.2.1, released 2 years ago by ricardoboss.de

A customizable Cupertino‑style battery indicator widget.

WASM-ready
$ flutter pub add cupertino_battery_indicator
Source repository

What it does

Displays a battery icon that can represent any percentage value. The widget is highly customizable in colors and size and mimics the macOS menu‑bar battery design.

AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a simple visual representation of battery level in your UI
  • You want a lightweight, customizable widget without extra dependencies

Skip it when

  • You need to read the device's actual battery state
  • You require complex animations or interactions beyond a static indicator

Strengths

  • Very easy to integrate
  • Customizable colors and sizes
  • No external dependencies

Weaknesses

  • Does not provide real battery data
  • Limited to static visual representation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:cupertino_battery_indicator/cupertino_battery_indicator.dart';

Widget buildIndicator(double value) => Row(
  mainAxisSize: MainAxisSize.min,
  children: [
    BatteryIndicator(value: value),
    Text('${(value * 100).ceil()}%'),
  ],
);

Alternatives

Packages that do the same job and could replace cupertino_battery_indicator.