BatteryStatCard constructor
const
BatteryStatCard({
- Key? key,
- required GaugeController controller,
- String label = 'BATTERY',
- Color accentColor = const Color(0xFF34D399),
- Color lowColor = const Color(0xFFFBBF24),
- Color criticalColor = const Color(0xFFEF4444),
- double lowThreshold = 30,
- double criticalThreshold = 15,
- double ringSize = 96,
- bool showGlow = true,
- DashboardCardStyle cardStyle = const DashboardCardStyle(),
- GaugeMode? mode,
Implementation
const BatteryStatCard({
super.key,
required this.controller,
this.label = 'BATTERY',
this.accentColor = const Color(0xFF34D399),
this.lowColor = const Color(0xFFFBBF24),
this.criticalColor = const Color(0xFFEF4444),
this.lowThreshold = 30,
this.criticalThreshold = 15,
this.ringSize = 96,
this.showGlow = true,
this.cardStyle = const DashboardCardStyle(),
this.mode,
});