resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

Reset component-specific properties to defaults. Called by resetToDefaults() after resetting common properties.

Implementation

@override
void resetComponentSpecificProperties() {
  width = 320.0;
  padding = 24.0;
  titleMessageSpacing = 16.0;
  messageButtonSpacing = 24.0;
  buttonSpacing = 12.0;
  borderRadius = RadiusTokens.md;

  title = 'Confirm Action';
  message = 'Are you sure you want to proceed with this action?';
  confirmText = 'Confirm';
  cancelText = 'Cancel';

  titleFontSize = 20.0;
  messageFontSize = 15.0;
  buttonFontSize = 14.0;
  titleFontWeight = FontWeight.bold;
  messageFontWeight = FontWeight.normal;
  confirmFontWeight = FontWeight.bold;
  cancelFontWeight = FontWeight.normal;

  buttonDistanceMultiplier = 0.5;
  buttonBlurMultiplier = 0.7;
  buttonRadiusMultiplier = 0.6;
  buttonPaddingH = 16.0;
  buttonPaddingV = 8.0;

  // Reset colors
  titleColorLight = const Color(0xFF374151);
  titleColorDark = const Color(0xFFe5e7eb);
  messageColorLight = const Color(0xFF6b7280);
  messageColorDark = const Color(0xFF9ca3af);
  confirmColorLight = const Color(0xFF2563eb);
  confirmColorDark = const Color(0xFF60a5fa);
  cancelColorLight = const Color(0xFF6b7280);
  cancelColorDark = const Color(0xFF9ca3af);
}