File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ Language: [English](README.md) | 中文简体
43
43
| 参数名 | 类型 | 描述 | 默认值 |
44
44
| ------------------------ | -------------------------- | ---------------------------------------------------- | -------------------------------------- |
45
45
| isAllowRecording | ` bool ` | 选择器是否可以录像 | ` false ` |
46
+ | isOnlyAllowRecording | ` bool ` | 选择器是否仅可以录像。只在 ` isAllowRecording ` 为 ` true ` 时有效。 | ` false ` |
46
47
| maximumRecordingDuration | ` Duration ` | 录制视频最长时长 | ` const Duration(seconds: 15) ` |
47
48
| theme | ` ThemeData ` | 选择器的主题 | ` CameraPicker.themeData(C.themeColor) ` |
48
49
| textDelegate | ` CameraPickerTextDelegate ` | 控制部件中的文字实现 | ` DefaultCameraPickerTextDelegate ` |
Original file line number Diff line number Diff line change @@ -58,12 +58,13 @@ Reference: [wechat_assets_picker#preparing-for-use](https://github.com/flutterca
58
58
59
59
## Usage 📖
60
60
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 ` |
67
68
68
69
### Simple usage
69
70
You can’t perform that action at this time.
0 commit comments