Skip to content

Commit 732c82b

Browse files
committed
🎨 Reformat README
1 parent 8722610 commit 732c82b

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

README-ZH.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Language: [English](README.md) | 中文简体
2626
- [常见问题 💭](#常见问题-)
2727
- [iOS 上的预览在旋转时行为诡异](#iOS-上的预览在旋转时行为诡异)
2828

29-
3029
## 特性 ✨
3130

3231
- [x] 🔐 支持健全的空安全
@@ -42,7 +41,7 @@ Language: [English](README.md) | 中文简体
4241
## 截图 📸
4342

4443
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yrdqej30u01t017w.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yh3x4j30u01t0wuo.jpg) |
45-
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
44+
|-------------------------------------------------------------------------|-------------------------------------------------------------------------|
4645
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6z1h7xj30u01t01kx.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6zarvhj30u01t0x5f.jpg) |
4746

4847
## 准备工作 🍭
@@ -58,29 +57,29 @@ Flutter SDK:`>=2.0.0` 。
5857

5958
## 使用方法 📖
6059

61-
| 参数名 | 类型 | 描述 | 默认值 |
62-
| ---------------------------- | ------------------------------- | --------------------------------------------------------------- | -------------------------------------- |
63-
| enableRecording | `bool` | 选择器是否可以录像 | `false` |
64-
| onlyEnableRecording | `bool` | 选择器是否仅可以录像。只在 `enableRecording``true` 时有效。 | `false` |
60+
| 参数名 | 类型 | 描述 | 默认值 |
61+
|------------------------------|---------------------------------|----------------------------------------------------|----------------------------------------|
62+
| enableRecording | `bool` | 选择器是否可以录像 | `false` |
63+
| onlyEnableRecording | `bool` | 选择器是否仅可以录像。只在 `enableRecording``true` 时有效。 | `false` |
6564
| enableTapRecording | `bool` | 选择器是否可以单击录像。只在 `onlyEnableRecording``true` 时生效。 | `false` |
6665
| enableAudio | `bool` | 选择器是否需要录制音频。只在 `enableRecording``true` 时有效。 | `true` |
6766
| enableSetExposure | `bool` | 用户是否可以在界面上通过点击设定曝光点 | `true` |
68-
| enableExposureControlOnPoint | `bool` | 用户是否可以根据已经设置的曝光点调节曝光度 | `true` |
67+
| enableExposureControlOnPoint | `bool` | 用户是否可以根据已经设置的曝光点调节曝光度 | `true` |
6968
| enablePinchToZoom | `bool` | 用户是否可以在界面上双指缩放相机对焦 | `true` |
70-
| enablePullToZoomInRecord | `bool` | 用户是否可以在录制视频时上拉缩放 | `true` |
71-
| shouldDeletePreviewFile | `bool` | 返回页面时是否删除预览文件 | `false` |
72-
| shouldAutoPreviewVideo | `bool` | 在预览时是否直接播放视频 | `false` |
73-
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
74-
| theme | `ThemeData?` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
75-
| textDelegate | `CameraPickerTextDelegate?` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
76-
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
77-
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次 90 度 | `0` |
78-
| imageFormatGroup | `ImageFormatGroup` | 输出图像的格式描述 | `ImageFormatGroup.unknown` |
79-
| preferredLensDirection | `CameraLensDirection` | 首次使用相机时首选的镜头方向 | `CameraLensDirection.back` |
80-
| lockCaptureOrientation | `DeviceOrientation?` | 摄像机在拍摄时锁定的旋转角度 | null |
81-
| foregroundBuilder | `Widget Function(CameraValue)?` | 覆盖在相机预览上方的前景构建 | null |
82-
| onEntitySaving | `EntitySaveCallback?` | 在查看器中保存图片时的回调 | null |
83-
| onError | `CameraErrorHandler?` | 拍摄照片过程中的自定义错误处理 | null |
69+
| enablePullToZoomInRecord | `bool` | 用户是否可以在录制视频时上拉缩放 | `true` |
70+
| shouldDeletePreviewFile | `bool` | 返回页面时是否删除预览文件 | `false` |
71+
| shouldAutoPreviewVideo | `bool` | 在预览时是否直接播放视频 | `false` |
72+
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
73+
| theme | `ThemeData?` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
74+
| textDelegate | `CameraPickerTextDelegate?` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
75+
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
76+
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次 90 度 | `0` |
77+
| imageFormatGroup | `ImageFormatGroup` | 输出图像的格式描述 | `ImageFormatGroup.unknown` |
78+
| preferredLensDirection | `CameraLensDirection` | 首次使用相机时首选的镜头方向 | `CameraLensDirection.back` |
79+
| lockCaptureOrientation | `DeviceOrientation?` | 摄像机在拍摄时锁定的旋转角度 | null |
80+
| foregroundBuilder | `Widget Function(CameraValue)?` | 覆盖在相机预览上方的前景构建 | null |
81+
| onEntitySaving | `EntitySaveCallback?` | 在查看器中保存图片时的回调 | null |
82+
| onError | `CameraErrorHandler?` | 拍摄照片过程中的自定义错误处理 | null |
8483

8584
### 简单的使用方法
8685

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Based on `camera` for camera functions and `photo_manager` for asset implementat
4343
## Screenshots 📸
4444

4545
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yrdqej30u01t017w.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yh3x4j30u01t0wuo.jpg) |
46-
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
46+
|-------------------------------------------------------------------------|-------------------------------------------------------------------------|
4747
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6z1h7xj30u01t01kx.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6zarvhj30u01t0x5f.jpg) |
4848

4949
## Preparing for use 🍭
@@ -60,7 +60,7 @@ Flutter SDK: `>=2.0.0` .
6060
## Usage 📖
6161

6262
| Name | Type | Description | Default Value |
63-
| ---------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------- |
63+
|------------------------------|---------------------------------|-------------------------------------------------------------------------------------------------------|----------------------------------------|
6464
| enableRecording | `bool` | Whether the picker can record video. | `false` |
6565
| onlyEnableRecording | `bool` | Whether the picker can only record video. Only available when `enableRecording` is `true `. | `false` |
6666
| enableTapRecording | `bool` | Whether allow the record can start with single tap. Only available when `enableRecording` is `true `. | `false` |

0 commit comments

Comments
 (0)