Skip to content

Commit 29b8cc4

Browse files
mjl0602AlexV525
authored andcommitted
add readme
1 parent b5d8cf5 commit 29b8cc4

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

README-ZH.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Language: [English](README.md) | 中文简体
3030
## 截图 📸
3131

3232
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yrdqej30u01t017w.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yh3x4j30u01t0wuo.jpg) |
33-
|-----------------|------------------|
33+
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
3434
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6z1h7xj30u01t01kx.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6zarvhj30u01t0x5f.jpg) |
3535

3636
## 准备工作 🍭
@@ -41,15 +41,15 @@ Language: [English](README.md) | 中文简体
4141

4242
## 使用方法 📖
4343

44-
| 参数名 | 类型 | 描述 | 默认值 |
45-
| ------------------------ | -------------------------- | ---------------------------------------------------- | -------------------------------------- |
46-
| isAllowRecording | `bool` | 选择器是否可以录像 | `false` |
47-
| isOnlyAllowRecording | `bool` | 选择器是否仅可以录像。只在 `isAllowRecording``true` 时有效。 | `false` |
48-
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
49-
| theme | `ThemeData` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
50-
| textDelegate | `CameraPickerTextDelegate` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
51-
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
52-
44+
| 参数名 | 类型 | 描述 | 默认值 |
45+
| ------------------------ | -------------------------- | ----------------------------------------------------------------- | -------------------------------------- |
46+
| isAllowRecording | `bool` | 选择器是否可以录像 | `false` |
47+
| isOnlyAllowRecording | `bool` | 选择器是否仅可以录像。只在 `isAllowRecording``true` 时有效。 | `false` |
48+
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
49+
| theme | `ThemeData` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
50+
| textDelegate | `CameraPickerTextDelegate` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
51+
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
52+
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次90度 | `0` |
5353
### 简单的使用方法
5454

5555
```dart

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ This project follows the [all-contributors](https://github.com/all-contributors/
3434

3535
## Category 🗂
3636

37-
* [Features](#features-)
38-
* [Screenshots](#screenshots-)
39-
* [Preparing for use](#preparing-for-use-)
40-
* [Usage](#usage-)
37+
- [Flutter WeChat Camera Picker](#flutter-wechat-camera-picker)
38+
- [Contributors ✨](#contributors-)
39+
- [Category 🗂](#category-)
40+
- [Features ✨](#features-)
41+
- [Screenshots 📸](#screenshots-)
42+
- [Preparing for use 🍭](#preparing-for-use-)
43+
- [Usage 📖](#usage-)
44+
- [Simple usage](#simple-usage)
4145

4246
## Features ✨
4347

@@ -49,7 +53,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/
4953
## Screenshots 📸
5054

5155
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yrdqej30u01t017w.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6yh3x4j30u01t0wuo.jpg) |
52-
|-----------------|------------------|
56+
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
5357
| ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6z1h7xj30u01t01kx.jpg) | ![](https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6zarvhj30u01t0x5f.jpg) |
5458

5559
## Preparing for use 🍭
@@ -60,14 +64,15 @@ Reference:
6064

6165
## Usage 📖
6266

63-
| Name | Type | Description | Default Value |
64-
| ------------------------ | -------------------------- | ------------------------------------------------------------ | -------------------------------------- |
65-
| isAllowRecording | `bool` | Whether the picker can record video. | `false` |
67+
| Name | Type | Description | Default Value |
68+
| ------------------------ | -------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------- |
69+
| isAllowRecording | `bool` | Whether the picker can record video. | `false` |
6670
| isOnlyAllowRecording | `bool` | Whether the picker can only record video. Only available when `isAllowRecording` is `true `. | `false` |
67-
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
68-
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
69-
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
70-
| resolutionPreset | `ResolutionPreset` | Present resolution for the camera. | `ResolutionPreset.max` |
71+
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
72+
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
73+
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
74+
| resolutionPreset | `ResolutionPreset` | Present resolution for the camera. | `ResolutionPreset.max` |
75+
| cameraQuarterTurns | `int` | The number of clockwise quarter turns the camera view should be rotated. | `0` |
7176

7277
### Simple usage
7378

0 commit comments

Comments
 (0)