FaceCaptureConfig constructor
const
FaceCaptureConfig({
- List<
FacePoseStep> ? steps, - double straightYawTolerance = 8.0,
- double straightPitchTolerance = 8.0,
- double yawThreshold = 20.0,
- double pitchThreshold = 15.0,
- double smileThreshold = 0.7,
- Duration holdDuration = const Duration(milliseconds: 600),
- bool autoCapture = true,
- Color primaryColor = PrimaryColors.p500,
- Color successColor = const Color(0xFF34C759),
- Color errorColor = const Color(0xFFFF3B30),
- Color overlayBackgroundColor = const Color(0xFFFFFFFF),
- Widget overlayBuilder(
- BuildContext context,
- FaceCaptureState state
- Widget instructionBuilder(
- BuildContext context,
- FacePoseStep step
- Widget progressBuilder(
- BuildContext context,
- int completedSteps,
- int totalSteps
- Widget captureButtonBuilder(
- BuildContext context,
- VoidCallback onCapture
- Widget successBuilder(
- BuildContext context
- Widget errorBuilder(
- BuildContext context,
- String message,
- VoidCallback onRetry
Implementation
const FaceCaptureConfig({
List<FacePoseStep>? steps,
this.straightYawTolerance = 8.0,
this.straightPitchTolerance = 8.0,
this.yawThreshold = 20.0,
this.pitchThreshold = 15.0,
this.smileThreshold = 0.7,
this.holdDuration = const Duration(milliseconds: 600),
this.autoCapture = true,
this.primaryColor = PrimaryColors.p500,
this.successColor = const Color(0xFF34C759),
this.errorColor = const Color(0xFFFF3B30),
this.overlayBackgroundColor = const Color(0xFFFFFFFF),
this.overlayBuilder,
this.instructionBuilder,
this.progressBuilder,
this.captureButtonBuilder,
this.successBuilder,
this.errorBuilder,
}) : steps = steps ?? const [];