UCameraOptions constructor

const UCameraOptions({
  1. UCameraMode mode = UCameraMode.photo,
  2. bool allowMultiple = false,
  3. int maxCount = 0,
  4. UCameraResolution resolution = UCameraResolution.veryHigh,
  5. bool startFront = false,
  6. bool enableFlash = true,
  7. bool enableCameraSwitch = true,
  8. bool enableGrid = true,
  9. bool enableLevel = false,
  10. bool enablePinchZoom = true,
  11. bool enableZoomSlider = false,
  12. bool enableZoomPresets = true,
  13. bool enableTapToFocus = true,
  14. bool enableExposure = true,
  15. bool enableSelfTimer = true,
  16. bool enableAudio = true,
  17. bool enableStabilization = true,
  18. bool enableHdr = false,
  19. bool enableManualControls = false,
  20. bool enableAspectRatioToggle = false,
  21. bool confirmCapture = true,
  22. bool mirrorFrontPreview = true,
  23. bool mirrorFrontCapture = false,
  24. Duration? videoMaxDuration,
  25. UVideoCodec videoCodec = UVideoCodec.auto,
  26. UPhotoFormat photoFormat = UPhotoFormat.jpeg,
  27. int photoQuality = 92,
  28. BoxFit fit = BoxFit.cover,
  29. Color? accentColor,
  30. UCameraLabels? labels,
  31. Widget overlayBuilder(
    1. BuildContext context,
    2. 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,
});