Skip to content

Commit 4d7f9ff

Browse files
committed
📝 Documents update to 1.1.0 .
1 parent c2c1f67 commit 4d7f9ff

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README-ZH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Language: [English](README.md) | 中文简体
4343
| 参数名 | 类型 | 描述 | 默认值 |
4444
| ------------------------ | -------------------------- | ---------------------------------------------------- | -------------------------------------- |
4545
| isAllowRecording | `bool` | 选择器是否可以录像 | `false` |
46+
| isOnlyAllowRecording | `bool` | 选择器是否仅可以录像。只在 `isAllowRecording``true` 时有效。 | `false` |
4647
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
4748
| theme | `ThemeData` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
4849
| textDelegate | `CameraPickerTextDelegate` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ Reference: [wechat_assets_picker#preparing-for-use](https://github.com/flutterca
5858

5959
## Usage 📖
6060

61-
| Name | Type | Description | Default Value |
62-
| ------------------------ | -------------------------- | ---------------------------------------------------- | -------------------------------------- |
63-
| isAllowRecording | `bool` | Whether the picker can record video. | `false` |
64-
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
65-
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
66-
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
61+
| Name | Type | Description | Default Value |
62+
| ------------------------ | -------------------------- | ------------------------------------------------------------ | -------------------------------------- |
63+
| isAllowRecording | `bool` | Whether the picker can record video. | `false` |
64+
| isOnlyAllowRecording | `bool` | Whether the picker can only record video. Only available when `isAllowRecording` is `true `. | `false` |
65+
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
66+
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
67+
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
6768

6869
### Simple usage
6970

0 commit comments

Comments
 (0)