cupertino_battery_indicator
1.2.1, released 2 years ago by ricardoboss.de
A customizable Cupertino‑style battery indicator widget.
WASM-ready
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.
- cupertino_calendar_picker
Cupertino-style date and time picker widgets for Flutter
84Compare - widget_tooltip
A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning
48Compare - cherry_toast
Display custom elegant toast notifications with built-in animations and themes.
63Compare - circular_widgets
Display widgets in a circle with customizable radius and spacing.
45Compare