You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| isAllowPinchToZoom |`bool`| Whether users can zoom the camera by pinch. |`true`|
77
+
| isAllowRecording |`bool`| Whether the picker can record video. |`false`|
78
+
| isOnlyAllowRecording |`bool`| Whether the picker can only record video. Only available when `isAllowRecording` is `true `. |`false`|
79
+
| enableAudio |`bool`| Whether Whether the picker should record audio. Only available with recording. |`true`|
80
+
| maximumRecordingDuration |`Duration`| The maximum duration of the video recording process. |`const Duration(seconds: 15)`|
81
+
| theme |`ThemeData`| Theme data for the picker. |`CameraPicker.themeData(C.themeColor)`|
82
+
| textDelegate |`CameraPickerTextDelegate`| Text delegate that controls text in widgets. |`DefaultCameraPickerTextDelegate`|
83
+
| resolutionPreset |`ResolutionPreset`| Present resolution for the camera. |`ResolutionPreset.max`|
84
+
| cameraQuarterTurns |`int`| The number of clockwise quarter turns the camera view should be rotated. |`0`|
84
85
85
86
### Simple usage
86
87
87
88
```dart
88
89
final AssetEntity entity = await CameraPicker.pickFromCamera(context);
89
90
```
90
91
91
-
After called and the picker displayed, plus `isAllowRecording` is `true`, tap the shooting button to take a picture, long press the shooting button to record a video.
92
+
After called and the picker displayed,tap the shooting button to take a picture.
93
+
94
+
If `isAllowPinchToZoom` is `true`, pinch on the screen can zoom the camera.
95
+
96
+
If `isAllowRecording` is `true`, long press the shooting button to record a video.
0 commit comments