CameraConfig constructor

const CameraConfig({
  1. ImageResolution imageResolution = ImageResolution.medium,
  2. CameraType defaultCameraType = CameraType.front,
  3. CameraFlashType defaultFlashType = CameraFlashType.off,
  4. bool showControls = true,
  5. bool showCaptureIcon = true,
  6. bool showFlashControl = true,
  7. bool showCameraSwitchIcon = true,
  8. bool showCloseIcon = true,
  9. Widget? captureIcon,
  10. Widget? cameraSwitchIcon,
  11. FlashControlBuilder? flashControlBuilder,
  12. Widget? closeIcon,
  13. CameraPreviewSize cameraPreviewSize = CameraPreviewSize.fill,
  14. double? minAvailableZoom = 1.0,
  15. double? maxAvailableZoom = 1.0,
  16. Color? focusColor = Colors.white,
  17. bool showImagePreview = true,
})

Constructor with default values.

Implementation

const CameraConfig({
  this.imageResolution = ImageResolution.medium,
  this.defaultCameraType = CameraType.front,
  this.defaultFlashType = CameraFlashType.off,
  this.showControls = true,
  this.showCaptureIcon = true,
  this.showFlashControl = true,
  this.showCameraSwitchIcon = true,
  this.showCloseIcon = true,
  this.captureIcon,
  this.cameraSwitchIcon,
  this.flashControlBuilder,
  this.closeIcon,
  this.cameraPreviewSize = CameraPreviewSize.fill,
  this.minAvailableZoom = 1.0,
  this.maxAvailableZoom = 1.0,
  this.focusColor = Colors.white,
  this.showImagePreview = true,
});