UCameraOptions constructor
const
UCameraOptions({
- UCameraMode mode = UCameraMode.photo,
- bool allowMultiple = false,
- int maxCount = 0,
- UCameraResolution resolution = UCameraResolution.veryHigh,
- bool startFront = false,
- bool enableFlash = true,
- bool enableCameraSwitch = true,
- bool enableGrid = true,
- bool enableLevel = false,
- bool enablePinchZoom = true,
- bool enableZoomSlider = false,
- bool enableZoomPresets = true,
- bool enableTapToFocus = true,
- bool enableExposure = true,
- bool enableSelfTimer = true,
- bool enableAudio = true,
- bool enableStabilization = true,
- bool enableHdr = false,
- bool enableManualControls = false,
- bool enableAspectRatioToggle = false,
- bool confirmCapture = true,
- bool mirrorFrontPreview = true,
- bool mirrorFrontCapture = false,
- Duration? videoMaxDuration,
- UVideoCodec videoCodec = UVideoCodec.auto,
- UPhotoFormat photoFormat = UPhotoFormat.jpeg,
- int photoQuality = 92,
- BoxFit fit = BoxFit.cover,
- Color? accentColor,
- UCameraLabels? labels,
- Widget overlayBuilder(
- BuildContext context,
- UCameraController controller
Implementation
const UCameraOptions({
this.mode = UCameraMode.photo,
this.allowMultiple = false,
this.maxCount = 0,
this.resolution = UCameraResolution.veryHigh,
this.startFront = false,
this.enableFlash = true,
this.enableCameraSwitch = true,
this.enableGrid = true,
this.enableLevel = false,
this.enablePinchZoom = true,
this.enableZoomSlider = false,
this.enableZoomPresets = true,
this.enableTapToFocus = true,
this.enableExposure = true,
this.enableSelfTimer = true,
this.enableAudio = true,
this.enableStabilization = true,
this.enableHdr = false,
this.enableManualControls = false,
this.enableAspectRatioToggle = false,
this.confirmCapture = true,
this.mirrorFrontPreview = true,
this.mirrorFrontCapture = false,
this.videoMaxDuration,
this.videoCodec = UVideoCodec.auto,
this.photoFormat = UPhotoFormat.jpeg,
this.photoQuality = 92,
this.fit = BoxFit.cover,
this.accentColor,
this.labels,
this.overlayBuilder,
});