resetComponentSpecificProperties method
Reset component-specific properties to defaults. Called by resetToDefaults() after resetting common properties.
Implementation
@override
void resetComponentSpecificProperties() {
viewfinderBorderRadius = 12.0;
viewfinderPadding = 8.0;
captureButtonSize = 72.0;
captureButtonBorderWidth = 4.0;
controlButtonSize = 48.0;
controlButtonSpacing = 24.0;
flashIcon = Icons.flash_auto;
switchCameraIcon = Icons.flip_camera_ios;
galleryIcon = Icons.photo_library;
hintFontSize = 14.0;
// Reset Rest state colors
restViewfinderBgLight = const Color(0xFF1f2937);
restViewfinderBgDark = const Color(0xFF111827);
restCaptureButtonColorLight = const Color(0xFFef4444);
restCaptureButtonColorDark = const Color(0xFFf87171);
restCaptureRingColorLight = const Color(0xFFffffff);
restCaptureRingColorDark = const Color(0xFFf3f4f6);
restControlButtonColorLight = const Color(0xFFe0e5ec);
restControlButtonColorDark = const Color(0xFF374151);
restControlIconColorLight = const Color(0xFF374151);
restControlIconColorDark = const Color(0xFFf3f4f6);
restHintColorLight = const Color(0xFF6b7280);
restHintColorDark = const Color(0xFF9ca3af);
// Reset Disabled state colors
disabledViewfinderBgLight = const Color(0xFF4b5563);
disabledViewfinderBgDark = const Color(0xFF1f2937);
disabledCaptureButtonColorLight = const Color(0xFFd1d5db);
disabledCaptureButtonColorDark = const Color(0xFF4b5563);
disabledControlButtonColorLight = const Color(0xFFe5e7eb);
disabledControlButtonColorDark = const Color(0xFF374151);
disabledControlIconColorLight = const Color(0xFF9ca3af);
disabledControlIconColorDark = const Color(0xFF6b7280);
}