DashboardCardStyle constructor

const DashboardCardStyle({
  1. Color backgroundColor = const Color(0xFF12151C),
  2. Color borderColor = const Color(0x14FFFFFF),
  3. double borderWidth = 1.0,
  4. double cornerRadius = 24.0,
  5. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  6. TextStyle labelStyle = const TextStyle(color: Color(0xFF8A8F98), fontSize: 11, fontWeight: FontWeight.w600, letterSpacing: 1.0),
  7. TextStyle valueStyle = const TextStyle(color: Colors.white, fontSize: 30, fontWeight: FontWeight.w700, height: 1.0),
  8. TextStyle unitStyle = const TextStyle(color: Color(0xFF8A8F98), fontSize: 12, fontWeight: FontWeight.w600),
  9. double glowOpacity = 0.35,
  10. 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),
});