resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

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

Implementation

@override
void resetComponentSpecificProperties() {
  callerName = 'Grandma Rose';
  isMuted = false;
  isVideoOn = true;

  videoAreaRadius = 16.0;
  selfPreviewWidth = 100.0;
  selfPreviewHeight = 140.0;
  selfPreviewRadius = 12.0;

  buttonSize = 60.0;
  endCallButtonSize = 72.0;
  buttonIconSize = 30.0;

  callerNameFontSize = 18.0;
  callerNameFontWeight = FontWeight.bold;
  voiceHintFontSize = 11.0;
  voiceHintFontWeight = FontWeight.normal;

  // Reset Rest state colors (Light)
  restCallerNameColorLight = const Color(0xFF1f2937);
  restVideoAreaColorLight = const Color(0xFF1f2937);
  restVideoIconColorLight = const Color(0xFFffffff);
  restMuteButtonColorLight = const Color(0xFF3b82f6);
  restVideoButtonColorLight = const Color(0xFF3b82f6);
  restEndCallButtonColorLight = const Color(0xFFef4444);
  restMutedIndicatorColorLight = const Color(0xFFef4444);
  restActiveIndicatorColorLight = const Color(0xFF10b981);
  restVoiceHintColorLight = const Color(0xFF6b7280);
  restSelfPreviewBorderColorLight = const Color(0xFFffffff);

  // Reset Rest state colors (Dark)
  restCallerNameColorDark = const Color(0xFFf3f4f6);
  restVideoAreaColorDark = const Color(0xFF111827);
  restVideoIconColorDark = const Color(0xFFffffff);
  restMuteButtonColorDark = const Color(0xFF60a5fa);
  restVideoButtonColorDark = const Color(0xFF60a5fa);
  restEndCallButtonColorDark = const Color(0xFFf87171);
  restMutedIndicatorColorDark = const Color(0xFFf87171);
  restActiveIndicatorColorDark = const Color(0xFF34d399);
  restVoiceHintColorDark = const Color(0xFF9ca3af);
  restSelfPreviewBorderColorDark = const Color(0xFFffffff);

  // Reset Disabled state colors (Light)
  disabledCallerNameColorLight = const Color(0xFF9ca3af);
  disabledVideoAreaColorLight = const Color(0xFF374151);
  disabledVideoIconColorLight = const Color(0xFF9ca3af);
  disabledMuteButtonColorLight = const Color(0xFF9ca3af);
  disabledVideoButtonColorLight = const Color(0xFF9ca3af);
  disabledEndCallButtonColorLight = const Color(0xFF9ca3af);
  disabledMutedIndicatorColorLight = const Color(0xFF9ca3af);
  disabledActiveIndicatorColorLight = const Color(0xFF9ca3af);
  disabledVoiceHintColorLight = const Color(0xFFd1d5db);
  disabledSelfPreviewBorderColorLight = const Color(0xFF9ca3af);

  // Reset Disabled state colors (Dark)
  disabledCallerNameColorDark = const Color(0xFF6b7280);
  disabledVideoAreaColorDark = const Color(0xFF1f2937);
  disabledVideoIconColorDark = const Color(0xFF6b7280);
  disabledMuteButtonColorDark = const Color(0xFF6b7280);
  disabledVideoButtonColorDark = const Color(0xFF6b7280);
  disabledEndCallButtonColorDark = const Color(0xFF6b7280);
  disabledMutedIndicatorColorDark = const Color(0xFF6b7280);
  disabledActiveIndicatorColorDark = const Color(0xFF6b7280);
  disabledVoiceHintColorDark = const Color(0xFF4b5563);
  disabledSelfPreviewBorderColorDark = const Color(0xFF6b7280);
}