Skip to content

Commit 22b8fda

Browse files
committed
📝 README
1 parent acd7e29 commit 22b8fda

File tree

2 files changed

+60
-58
lines changed

2 files changed

+60
-58
lines changed

README-ZH.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -178,35 +178,36 @@ final AssetEntity? entity = await CameraPicker.pickFromCamera(
178178

179179
`CameraPickerConfig` 的成员说明:
180180

181-
| 参数名 | 类型 | 描述 | 默认值 |
182-
|-------------------------------|-----------------------------|----------------------------------------------------|--------------------------------------------|
183-
| enableRecording | `bool` | 选择器是否可以录像 | `false` |
184-
| onlyEnableRecording | `bool` | 选择器是否仅可以录像。只在 `enableRecording``true` 时有效。 | `false` |
185-
| enableTapRecording | `bool` | 选择器是否可以单击录像。只在 `onlyEnableRecording``true` 时生效。 | `false` |
186-
| enableAudio | `bool` | 选择器是否需要录制音频。只在 `enableRecording``true` 时有效。 | `true` |
187-
| enableSetExposure | `bool` | 用户是否可以在界面上通过点击设定曝光点 | `true` |
188-
| enableExposureControlOnPoint | `bool` | 用户是否可以根据已经设置的曝光点调节曝光度 | `true` |
189-
| enablePinchToZoom | `bool` | 用户是否可以在界面上双指缩放相机对焦 | `true` |
190-
| enablePullToZoomInRecord | `bool` | 用户是否可以在录制视频时上拉缩放 | `true` |
191-
| enableScaledPreview | `bool` | 拍摄过程中相机预览是否需要缩放 | `false` |
192-
| shouldDeletePreviewFile | `bool` | 返回页面时是否删除预览文件 | `false` |
193-
| shouldAutoPreviewVideo | `bool` | 在预览时是否直接播放视频 | `true` |
194-
| maximumRecordingDuration | `Duration?` | 录制视频最长时长 | `const Duration(seconds: 15)` |
195-
| minimumRecordingDuration | `Duration` | 录制视频最短时长 | `const Duration(seconds: 1)` |
196-
| theme | `ThemeData?` | 选择器的主题 | `CameraPicker.themeData(wechatThemeColor)` |
197-
| textDelegate | `CameraPickerTextDelegate?` | 控制部件中的文字实现 | `CameraPickerTextDelegate` |
198-
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.ultraHigh` |
199-
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次 90 度 | `0` |
200-
| imageFormatGroup | `ImageFormatGroup` | 输出图像的格式描述 | `ImageFormatGroup.unknown` |
201-
| preferredLensDirection | `CameraLensDirection` | 首次使用相机时首选的镜头方向 | `CameraLensDirection.back` |
202-
| lockCaptureOrientation | `DeviceOrientation?` | 摄像机在拍摄时锁定的旋转角度 | null |
203-
| foregroundBuilder | `ForegroundBuilder?` | 覆盖在相机预览上方的前景构建 | null |
204-
| previewTransformBuilder | `PreviewTransformBuilder?` | 对相机预览做变换的构建 | null |
205-
| onEntitySaving | `EntitySaveCallback?` | 在查看器中保存图片时的回调 | null |
206-
| onError | `CameraErrorHandler?` | 拍摄照片过程中的自定义错误处理 | null |
207-
| onXFileCaptured | `XFileCapturedCallback?` | 拍摄文件生成后的回调 | null |
208-
| onMinimumRecordDurationNotMet | `VoidCallback?` | 录制时长未达到最小时长时的回调方法 | null |
209-
| onPickConfirmed | `void Function(AssetEntity)?` | 拍照或录像确认时的回调方法。 | null |
181+
| 参数名 | 类型 | 描述 | 默认值 |
182+
|-------------------------------|-------------------------------|----------------------------------------------------|--------------------------------------------|
183+
| enableRecording | `bool` | 选择器是否可以录像 | `false` |
184+
| onlyEnableRecording | `bool` | 选择器是否仅可以录像。只在 `enableRecording``true` 时有效。 | `false` |
185+
| enableTapRecording | `bool` | 选择器是否可以单击录像。只在 `onlyEnableRecording``true` 时生效。 | `false` |
186+
| enableAudio | `bool` | 选择器是否需要录制音频。只在 `enableRecording``true` 时有效。 | `true` |
187+
| enableSetExposure | `bool` | 用户是否可以在界面上通过点击设定曝光点 | `true` |
188+
| enableExposureControlOnPoint | `bool` | 用户是否可以根据已经设置的曝光点调节曝光度 | `true` |
189+
| enablePinchToZoom | `bool` | 用户是否可以在界面上双指缩放相机对焦 | `true` |
190+
| enablePullToZoomInRecord | `bool` | 用户是否可以在录制视频时上拉缩放 | `true` |
191+
| enableScaledPreview | `bool` | 拍摄过程中相机预览是否需要缩放 | `false` |
192+
| shouldDeletePreviewFile | `bool` | 返回页面时是否删除预览文件 | `false` |
193+
| shouldAutoPreviewVideo | `bool` | 在预览时是否直接播放视频 | `true` |
194+
| maximumRecordingDuration | `Duration?` | 录制视频最长时长 | `const Duration(seconds: 15)` |
195+
| minimumRecordingDuration | `Duration` | 录制视频最短时长 | `const Duration(seconds: 1)` |
196+
| theme | `ThemeData?` | 选择器的主题 | `CameraPicker.themeData(wechatThemeColor)` |
197+
| textDelegate | `CameraPickerTextDelegate?` | 控制部件中的文字实现 | `CameraPickerTextDelegate` |
198+
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.ultraHigh` |
199+
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次 90 度 | `0` |
200+
| imageFormatGroup | `ImageFormatGroup` | 输出图像的格式描述 | `ImageFormatGroup.unknown` |
201+
| preferredLensDirection | `CameraLensDirection` | 首次使用相机时首选的镜头方向 | `CameraLensDirection.back` |
202+
| lockCaptureOrientation | `DeviceOrientation?` | 摄像机在拍摄时锁定的旋转角度 | null |
203+
| foregroundBuilder | `ForegroundBuilder?` | 覆盖在相机预览上方的前景构建 | null |
204+
| previewTransformBuilder | `PreviewTransformBuilder?` | 对相机预览做变换的构建 | null |
205+
| onEntitySaving | `EntitySaveCallback?` | 在查看器中保存图片时的回调 | null |
206+
| onError | `CameraErrorHandler?` | 拍摄照片过程中的自定义错误处理 | null |
207+
| onXFileCaptured | `XFileCapturedCallback?` | 拍摄文件生成后的回调 | null |
208+
| onMinimumRecordDurationNotMet | `VoidCallback?` | 录制时长未达到最小时长时的回调方法 | null |
209+
| onPickConfirmed | `void Function(AssetEntity)?` | 拍照或录像确认时的回调方法。 | null |
210+
| permissionRequestOption | `PermissionRequestOption?` | 使用 `photo_manager` 保存拍摄的文件的权限请求配置 | null |
210211

211212
### 使用自定义的 `State`
212213

0 commit comments

Comments
 (0)