WalletDialogTheme constructor
WalletDialogTheme({
- Color textColor = const Color(0xFF1F2937),
- Color borderColor = const Color(0xFFE5E7EB),
- Color backgroundColor = Colors.white,
- Color gradientColor = const Color(0xFFF8FAFC),
- Color primaryColor = const Color(0xFF3B82F6),
- Color surfaceColor = const Color(0xFFF1F5F9),
- Color cardColor = const Color(0xFFFFFFFF),
- Color shadowColor = const Color(0x1A000000),
- TextStyle headerStyle = const TextStyle(fontSize: 22, fontWeight: FontWeight.w700, color: Color(0xFF1F2937), letterSpacing: -0.5),
- TextStyle labelStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xFF6B7280), letterSpacing: 0.1),
- TextStyle valueStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: Color(0xFF1F2937), letterSpacing: 0.1),
- ButtonConfig? buttonConfirmStyle,
- ButtonConfig? buttonRejectStyle,
- EdgeInsets dialogPadding = const EdgeInsets.all(24.0),
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 24.0),
- double itemSpacing = 16.0,
- double borderRadius = 16.0,
- double elevation = 8.0,
Implementation
WalletDialogTheme({
this.textColor = const Color(0xFF1F2937),
this.borderColor = const Color(0xFFE5E7EB),
this.backgroundColor = Colors.white,
this.gradientColor = const Color(0xFFF8FAFC),
this.primaryColor = const Color(0xFF3B82F6),
this.surfaceColor = const Color(0xFFF1F5F9),
this.cardColor = const Color(0xFFFFFFFF),
this.shadowColor = const Color(0x1A000000),
this.headerStyle = const TextStyle(
fontSize: 22,
fontWeight: FontWeight.w700,
color: Color(0xFF1F2937),
letterSpacing: -0.5,
),
this.labelStyle = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: Color(0xFF6B7280),
letterSpacing: 0.1,
),
this.valueStyle = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Color(0xFF1F2937),
letterSpacing: 0.1,
),
ButtonConfig? buttonConfirmStyle,
ButtonConfig? buttonRejectStyle,
this.dialogPadding = const EdgeInsets.all(24.0),
this.contentPadding = const EdgeInsets.symmetric(horizontal: 24.0),
this.itemSpacing = 16.0,
this.borderRadius = 16.0,
this.elevation = 8.0,
}) : buttonConfirmStyle = buttonConfirmStyle ?? const ButtonConfig(),
buttonRejectStyle = buttonRejectStyle ?? const ButtonConfig();