CameraConfig class
A configuration class for camera settings.
This class simplifies passing multiple camera-related parameters.
Constructors
- CameraConfig.new({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.
const
Properties
- cameraPreviewSize → CameraPreviewSize
-
Scaling option for the camera preview.
final
- cameraSwitchIcon → Widget?
-
Custom widget for the camera switch button.
final
- captureIcon → Widget?
-
Custom widget for the capture button.
final
- closeIcon → Widget?
-
Custom widget for the close button.
final
- defaultCameraType → CameraType
-
The default camera type (front or back).
final
- defaultFlashType → CameraFlashType
-
The default flash setting.
final
- flashControlBuilder → FlashControlBuilder?
-
Custom builder for the flash control button.
final
- focusColor → Color?
-
The color of the focus indicator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageResolution → ImageResolution
-
The resolution of the captured image.
final
- maxAvailableZoom → double?
-
The maximum zoom level available for the camera.
final
- minAvailableZoom → double?
-
The minimum zoom level available for the camera.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCameraSwitchIcon → bool
-
Whether to show the camera switch button.
final
- showCaptureIcon → bool
-
Whether to show the capture button.
final
- showCloseIcon → bool
-
Whether to show the close button.
final
- showControls → bool
-
Whether to show camera control buttons.
final
- showFlashControl → bool
-
Whether to show the flash toggle button.
final
- showImagePreview → bool
-
Whether to show the captured image preview.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited