DashboardCardStyle constructor
const
DashboardCardStyle({
- Color backgroundColor = const Color(0xFF12151C),
- Color borderColor = const Color(0x14FFFFFF),
- double borderWidth = 1.0,
- double cornerRadius = 24.0,
- EdgeInsetsGeometry padding = const EdgeInsets.all(16),
- TextStyle labelStyle = const TextStyle(color: Color(0xFF8A8F98), fontSize: 11, fontWeight: FontWeight.w600, letterSpacing: 1.0),
- TextStyle valueStyle = const TextStyle(color: Colors.white, fontSize: 30, fontWeight: FontWeight.w700, height: 1.0),
- TextStyle unitStyle = const TextStyle(color: Color(0xFF8A8F98), fontSize: 12, fontWeight: FontWeight.w600),
- double glowOpacity = 0.35,
- Color trackColor = const Color(0x14FFFFFF),
The default (dark) card chrome — a near-black glass card with a faint white edge. Every field is overridable.
Implementation
const DashboardCardStyle({
this.backgroundColor = const Color(0xFF12151C),
this.borderColor = const Color(0x14FFFFFF),
this.borderWidth = 1.0,
this.cornerRadius = 24.0,
this.padding = const EdgeInsets.all(16),
this.labelStyle = const TextStyle(
color: Color(0xFF8A8F98),
fontSize: 11,
fontWeight: FontWeight.w600,
letterSpacing: 1.0,
),
this.valueStyle = const TextStyle(
color: Colors.white,
fontSize: 30,
fontWeight: FontWeight.w700,
height: 1.0,
),
this.unitStyle = const TextStyle(
color: Color(0xFF8A8F98),
fontSize: 12,
fontWeight: FontWeight.w600,
),
this.glowOpacity = 0.35,
this.trackColor = const Color(0x14FFFFFF),
});