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 = 350.0;
  height = 280.0;
  paddingAll = 20.0;
  borderRadius = RadiusTokens.xl;
  iconSize = 32.0;

  medicationName = 'Aspirin';
  dosage = '100mg';
  instructions = 'Take with food';
  nextDoseTime = DateTime.now().add(const Duration(hours: 2, minutes: 30));
  snoozeDurationMinutes = 5;

  nameFontSize = 20.0;
  dosageFontSize = 16.0;
  timerLabelFontSize = 14.0;
  timerValueFontSize = 24.0;
  instructionsFontSize = 12.0;
  buttonFontSize = 14.0;
  voiceHintFontSize = 11.0;

  // Icon uses blue accent
  restIconColorLight = const Color(0xFF1e40af);
  restIconColorDark = const Color(0xFF60a5fa);
  disabledIconColorLight = const Color(0xFF9ca3af);
  disabledIconColorDark = const Color(0xFF6b7280);

  // Reset dosage colors
  restDosageColorLight = const Color(0xFF6b7280);
  restDosageColorDark = const Color(0xFF9ca3af);
  disabledDosageColorLight = const Color(0xFFd1d5db);
  disabledDosageColorDark = const Color(0xFF4b5563);

  // Reset timer colors
  restTimerLabelColorLight = const Color(0xFF6b7280);
  restTimerLabelColorDark = const Color(0xFF9ca3af);
  restTimerNormalColorLight = const Color(0xFF10b981);
  restTimerNormalColorDark = const Color(0xFF34d399);
  restTimerWarningColorLight = const Color(0xFFf97316);
  restTimerWarningColorDark = const Color(0xFFfb923c);
  restTimerOverdueColorLight = const Color(0xFFef4444);
  restTimerOverdueColorDark = const Color(0xFFf87171);
  disabledTimerLabelColorLight = const Color(0xFFd1d5db);
  disabledTimerLabelColorDark = const Color(0xFF4b5563);
  disabledTimerColorLight = const Color(0xFF9ca3af);
  disabledTimerColorDark = const Color(0xFF6b7280);

  // Reset instructions colors
  restInstructionsColorLight = const Color(0xFF111827);
  restInstructionsColorDark = const Color(0xFFf3f4f6);
  restInstructionsBgColorLight = const Color(0xFFdbeafe);
  restInstructionsBgColorDark = const Color(0xFF1e3a8a);
  restInstructionsIconColorLight = const Color(0xFF2563eb);
  restInstructionsIconColorDark = const Color(0xFF60a5fa);
  disabledInstructionsColorLight = const Color(0xFF9ca3af);
  disabledInstructionsColorDark = const Color(0xFF6b7280);
  disabledInstructionsBgColorLight = const Color(0xFFf3f4f6);
  disabledInstructionsBgColorDark = const Color(0xFF1f2937);
  disabledInstructionsIconColorLight = const Color(0xFFd1d5db);
  disabledInstructionsIconColorDark = const Color(0xFF4b5563);

  // Reset button colors
  restButtonTakenBgLight = const Color(0xFF10b981);
  restButtonTakenBgDark = const Color(0xFF10b981);
  restButtonSnoozeBgLight = const Color(0xFFf97316);
  restButtonSnoozeBgDark = const Color(0xFFf97316);
  restButtonTextLight = const Color(0xFFffffff);
  restButtonTextDark = const Color(0xFFffffff);
  disabledButtonBgLight = const Color(0xFFe5e7eb);
  disabledButtonBgDark = const Color(0xFF374151);
  disabledButtonTextLight = const Color(0xFF9ca3af);
  disabledButtonTextDark = const Color(0xFF6b7280);

  // Reset voice hint colors
  restVoiceHintColorLight = const Color(0xFF9ca3af);
  restVoiceHintColorDark = const Color(0xFF6b7280);
  disabledVoiceHintColorLight = const Color(0xFFd1d5db);
  disabledVoiceHintColorDark = const Color(0xFF4b5563);
}