@@ -79,29 +79,30 @@ final AssetEntity? entity = await CameraPicker.pickFromCamera(
79
79
80
80
Fields in ` CameraPickerConfig ` :
81
81
82
- | Name | Type | Description | Default Value |
83
- | ------------------------------| ---------------------------------| -------------------------------------------------------------------------------------------------------| ----------------------------------------|
84
- | enableRecording | ` bool ` | Whether the picker can record video. | ` false ` |
85
- | onlyEnableRecording | ` bool ` | Whether the picker can only record video. Only available when ` enableRecording ` is ` true ` . | ` false ` |
86
- | enableTapRecording | ` bool ` | Whether allow the record can start with single tap. Only available when ` enableRecording ` is ` true ` . | ` false ` |
87
- | enableAudio | ` bool ` | Whether Whether the picker should record audio. Only available with recording. | ` true ` |
88
- | enableSetExposure | ` bool ` | Whether users can set the exposure point by tapping. | ` true ` |
89
- | enableExposureControlOnPoint | ` bool ` | Whether users can adjust exposure according to the set point. | ` true ` |
90
- | enablePinchToZoom | ` bool ` | Whether users can zoom the camera by pinch. | ` true ` |
91
- | enablePullToZoomInRecord | ` bool ` | Whether users can zoom by pulling up when recording video. | ` true ` |
92
- | shouldDeletePreviewFile | ` bool ` | Whether the preview file will be delete when pop. | ` false ` |
93
- | shouldAutoPreviewVideo | ` bool ` | Whether the video should be played instantly in the preview. | ` false ` |
94
- | maximumRecordingDuration | ` Duration ` | The maximum duration of the video recording process. | ` const Duration(seconds: 15) ` |
95
- | theme | ` ThemeData? ` | Theme data for the picker. | ` CameraPicker.themeData(C.themeColor) ` |
96
- | textDelegate | ` CameraPickerTextDelegate? ` | Text delegate that controls text in widgets. | ` DefaultCameraPickerTextDelegate ` |
97
- | resolutionPreset | ` ResolutionPreset ` | Present resolution for the camera. | ` ResolutionPreset.max ` |
98
- | cameraQuarterTurns | ` int ` | The number of clockwise quarter turns the camera view should be rotated. | ` 0 ` |
99
- | imageFormatGroup | ` ImageFormatGroup ` | Describes the output of the raw image format. | ` ImageFormatGroup.unknown ` |
100
- | preferredLensDirection | ` CameraLensDirection ` | Which lens direction is preferred when first using the camera. | ` CameraLensDirection.back ` |
101
- | lockCaptureOrientation | ` DeviceOrientation? ` | Whether the camera should be locked to the specific orientation during captures. | null |
102
- | foregroundBuilder | ` Widget Function(CameraValue)? ` | The foreground widget builder which will cover the whole camera preview. | null |
103
- | onEntitySaving | ` EntitySaveCallback? ` | The callback type define for saving entity in the viewer. | null |
104
- | onError | ` CameraErrorHandler? ` | The error handler when any error occurred during the picking process. | null |
82
+ | Name | Type | Description | Default Value |
83
+ | ------------------------------| -----------------------------| -------------------------------------------------------------------------------------------------------| ----------------------------------------|
84
+ | enableRecording | ` bool ` | Whether the picker can record video. | ` false ` |
85
+ | onlyEnableRecording | ` bool ` | Whether the picker can only record video. Only available when ` enableRecording ` is ` true ` . | ` false ` |
86
+ | enableTapRecording | ` bool ` | Whether allow the record can start with single tap. Only available when ` enableRecording ` is ` true ` . | ` false ` |
87
+ | enableAudio | ` bool ` | Whether Whether the picker should record audio. Only available with recording. | ` true ` |
88
+ | enableSetExposure | ` bool ` | Whether users can set the exposure point by tapping. | ` true ` |
89
+ | enableExposureControlOnPoint | ` bool ` | Whether users can adjust exposure according to the set point. | ` true ` |
90
+ | enablePinchToZoom | ` bool ` | Whether users can zoom the camera by pinch. | ` true ` |
91
+ | enablePullToZoomInRecord | ` bool ` | Whether users can zoom by pulling up when recording video. | ` true ` |
92
+ | shouldDeletePreviewFile | ` bool ` | Whether the preview file will be delete when pop. | ` false ` |
93
+ | shouldAutoPreviewVideo | ` bool ` | Whether the video should be played instantly in the preview. | ` false ` |
94
+ | maximumRecordingDuration | ` Duration ` | The maximum duration of the video recording process. | ` const Duration(seconds: 15) ` |
95
+ | theme | ` ThemeData? ` | Theme data for the picker. | ` CameraPicker.themeData(C.themeColor) ` |
96
+ | textDelegate | ` CameraPickerTextDelegate? ` | Text delegate that controls text in widgets. | ` DefaultCameraPickerTextDelegate ` |
97
+ | resolutionPreset | ` ResolutionPreset ` | Present resolution for the camera. | ` ResolutionPreset.max ` |
98
+ | cameraQuarterTurns | ` int ` | The number of clockwise quarter turns the camera view should be rotated. | ` 0 ` |
99
+ | imageFormatGroup | ` ImageFormatGroup ` | Describes the output of the raw image format. | ` ImageFormatGroup.unknown ` |
100
+ | preferredLensDirection | ` CameraLensDirection ` | Which lens direction is preferred when first using the camera. | ` CameraLensDirection.back ` |
101
+ | lockCaptureOrientation | ` DeviceOrientation? ` | Whether the camera should be locked to the specific orientation during captures. | null |
102
+ | foregroundBuilder | ` ForegroundBuilder? ` | The foreground widget builder which will cover the whole camera preview. | null |
103
+ | previewTransformBuilder | ` PreviewTransformBuilder? ` | The widget builder which will transform the camera preview. | null |
104
+ | onEntitySaving | ` EntitySaveCallback? ` | The callback type define for saving entity in the viewer. | null |
105
+ | onError | ` CameraErrorHandler? ` | The error handler when any error occurred during the picking process. | null |
105
106
106
107
## Frequently asked question 💭
107
108
0 commit comments