CameraConfig constructor
const
CameraConfig({
- ImageResolution imageResolution = ImageResolution.medium,
- CameraType defaultCameraType = CameraType.front,
- CameraFlashType defaultFlashType = CameraFlashType.off,
- bool showControls = true,
- bool showCaptureIcon = true,
- bool showFlashControl = true,
- bool showCameraSwitchIcon = true,
- bool showCloseIcon = true,
- Widget? captureIcon,
- Widget? cameraSwitchIcon,
- FlashControlBuilder? flashControlBuilder,
- Widget? closeIcon,
- CameraPreviewSize cameraPreviewSize = CameraPreviewSize.fill,
- double? minAvailableZoom = 1.0,
- double? maxAvailableZoom = 1.0,
- Color? focusColor = Colors.white,
- 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,
});