resetComponentSpecificProperties method

  1. @override
void resetComponentSpecificProperties()
override

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

Implementation

@override
void resetComponentSpecificProperties() {
  scannerBorderRadius = 12.0;
  scannerPadding = 16.0;
  cornerSize = 24.0;
  cornerWidth = 3.0;

  instructionText = 'Position document within frame';
  hintText = 'Hold steady for best results';

  scanButtonSize = 64.0;
  actionButtonSize = 44.0;

  instructionFontSize = 16.0;
  hintFontSize = 13.0;
  stepFontSize = 12.0;
  instructionFontWeight = FontWeight.w500;

  currentStep = 1;
  totalSteps = 3;
  stepIndicatorSize = 8.0;

  // Reset Rest state colors
  restScannerBgLight = const Color(0xFF1f2937);
  restScannerBgDark = const Color(0xFF111827);
  restScanBorderColorLight = const Color(0xFF22c55e);
  restScanBorderColorDark = const Color(0xFF4ade80);
  restCornerColorLight = const Color(0xFF22c55e);
  restCornerColorDark = const Color(0xFF4ade80);
  restInstructionColorLight = const Color(0xFF1f2937);
  restInstructionColorDark = const Color(0xFFf3f4f6);
  restHintColorLight = const Color(0xFF6b7280);
  restHintColorDark = const Color(0xFF9ca3af);
  restScanButtonColorLight = const Color(0xFF6366f1);
  restScanButtonColorDark = const Color(0xFF818cf8);
  restScanIconColorLight = const Color(0xFFffffff);
  restScanIconColorDark = const Color(0xFF1f2937);
  restActionButtonColorLight = const Color(0xFFe0e5ec);
  restActionButtonColorDark = const Color(0xFF374151);
  restActionIconColorLight = const Color(0xFF374151);
  restActionIconColorDark = const Color(0xFFf3f4f6);
  restStepActiveColorLight = const Color(0xFF6366f1);
  restStepActiveColorDark = const Color(0xFF818cf8);
  restStepInactiveColorLight = const Color(0xFFd1d5db);
  restStepInactiveColorDark = const Color(0xFF4b5563);

  // Reset Disabled state colors
  disabledCornerColorLight = const Color(0xFFd1d5db);
  disabledCornerColorDark = const Color(0xFF374151);
  disabledInstructionColorLight = const Color(0xFF9ca3af);
  disabledInstructionColorDark = const Color(0xFF4b5563);
  disabledScanButtonColorLight = const Color(0xFFd1d5db);
  disabledScanButtonColorDark = const Color(0xFF374151);
}