resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

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

Implementation

@override
void resetComponentSpecificProperties() {
  // Reset content properties
  title = 'Card Title';
  subtitle =
      'This is a neumorphic card component. The soft shadows create depth and tactile realism.';
  titleFontSize = 24.0;
  subtitleFontSize = 16.0;
  titleFontWeight = FontWeight.bold;
  subtitleFontWeight = FontWeight.normal;
  titleTextAlign = TextAlign.left;
  subtitleTextAlign = TextAlign.left;
  titleShrinkToFit = false;
  subtitleShrinkToFit = false;
  titleMaxLines = null;
  subtitleMaxLines = null;
  titleOverflow = TextOverflow.visible;
  subtitleOverflow = TextOverflow.visible;
  contentSpacing = 16.0;
  icon = null;
  iconSize = 32.0;
  iconPosition = 'none';
  iconSpacing = 16.0;
  horizontalAlignment = CrossAxisAlignment.start;
  verticalAlignment = MainAxisAlignment.start;
  cursorStyle = 'click';
  borderRadius = RadiusTokens.xl;

  // Reset card-specific colors
  restTitleColorLight = const Color(0xFF1a1a1a);
  restSubtitleColorLight = const Color(0xFF4a4a4a);
  restIconColorCardLight = const Color(0xFF2563eb);
  restTitleColorDark = const Color(0xFFf3f4f6);
  restSubtitleColorDark = const Color(0xFF9ca3af);
  restIconColorCardDark = const Color(0xFF3b82f6);

  hoverTitleColorLight = const Color(0xFF111827);
  hoverSubtitleColorLight = const Color(0xFF374151);
  hoverIconColorCardLight = const Color(0xFF1d4ed8);
  hoverTitleColorDark = const Color(0xFFffffff);
  hoverSubtitleColorDark = const Color(0xFFd1d5db);
  hoverIconColorCardDark = const Color(0xFF60a5fa);

  pressedTitleColorLight = const Color(0xFF0f172a);
  pressedSubtitleColorLight = const Color(0xFF1f2937);
  pressedIconColorCardLight = const Color(0xFF1e40af);
  pressedTitleColorDark = const Color(0xFFe5e7eb);
  pressedSubtitleColorDark = const Color(0xFF9ca3af);
  pressedIconColorCardDark = const Color(0xFF3b82f6);

  disabledTitleColorLight = const Color(0xFF9ca3af);
  disabledSubtitleColorLight = const Color(0xFFd1d5db);
  disabledIconColorCardLight = const Color(0xFFbdbdbd);
  disabledTitleColorDark = const Color(0xFF4b5563);
  disabledSubtitleColorDark = const Color(0xFF374151);
  disabledIconColorCardDark = const Color(0xFF757575);
}