UCameraOptions class

Full configuration of UCameraPage. Every control can be switched off, and controls the device cannot support hide themselves.

Constructors

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)?})
const

Properties

accentColor → Color?
final
allowMultiple → bool
final
confirmCapture → bool
final
enableAspectRatioToggle → bool
final
enableAudio → bool
final
enableCameraSwitch → bool
final
enableExposure → bool
final
enableFlash → bool
final
enableGrid → bool
final
enableHdr → bool
final
enableLevel → bool
Shows a horizon level line over the preview.
final
enableManualControls → bool
Reveals ISO, shutter and white-balance sliders on capable devices.
final
enablePinchZoom → bool
final
enableSelfTimer → bool
final
enableStabilization → bool
final
enableTapToFocus → bool
final
enableZoomPresets → bool
Shows 0.5x / 1x / 2x quick-zoom chips when the lens range allows it.
final
enableZoomSlider → bool
final
fit → BoxFit
final
hashCode → int
The hash code for this object.
no setterinherited
labels → UCameraLabels?
final
maxCount → int
Maximum photos in multi mode; 0 means unlimited.
final
mirrorFrontCapture → bool
final
mirrorFrontPreview → bool
final
mode → UCameraMode
final
overlayBuilder → Widget Function(BuildContext context, UCameraController controller)?
Extra chrome drawn over the preview, below the built-in controls.
final
photoFormat → UPhotoFormat
final
photoQuality → int
final
resolution → UCameraResolution
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startFront → bool
final
videoCodec → UVideoCodec
final
videoMaxDuration → Duration?
final

Methods

copyWith({UCameraMode? mode, bool? allowMultiple, int? maxCount, bool? startFront, UCameraResolution? resolution}) → UCameraOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toConfig() → UCameraConfig
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited