Skip to content

Commit 8d3013e

Browse files
committed
✨ Add exposure control slider.
1 parent 61ae8ea commit 8d3013e

File tree

4 files changed

+179
-65
lines changed

4 files changed

+179
-65
lines changed

README-ZH.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,20 @@ Flutter SDK:`>=1.20.0` 。
4545

4646
## 使用方法 📖
4747

48-
| 参数名 | 类型 | 描述 | 默认值 |
49-
| ------------------------ | ------------------------------ | ----------------------------------------------------------------- | -------------------------------------- |
50-
| allowPinchToZoom | `bool` | 用户是否可以在界面上双指缩放相机对焦 | `true` |
51-
| allowRecording | `bool` | 选择器是否可以录像 | `false` |
52-
| onlyAllowRecording | `bool` | 选择器是否仅可以录像。只在 `isAllowRecording``true` 时有效。 | `false` |
53-
| enabledAudio | `bool` | 选择器是否需要录制音频。只于录像配合有效。 | `true` |
54-
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
55-
| theme | `ThemeData` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
56-
| textDelegate | `CameraPickerTextDelegate` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
57-
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
58-
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次90度 | `0` |
59-
| foregroundBuilder | `Widget Function(CameraValue)` | 覆盖在相机预览上方的前景构建 | null |
48+
| 参数名 | 类型 | 描述 | 默认值 |
49+
| ---------------------------- | ------------------------------ | ----------------------------------------------------------------- | -------------------------------------- |
50+
| allowRecording | `bool` | 选择器是否可以录像 | `false` |
51+
| onlyAllowRecording | `bool` | 选择器是否仅可以录像。只在 `isAllowRecording``true` 时有效。 | `false` |
52+
| enabledAudio | `bool` | 选择器是否需要录制音频。只于录像配合有效。 | `true` |
53+
| enableSetExposure | `bool` | 用户是否可以在界面上通过点击设定曝光点 | `true` |
54+
| enableExposureControlOnPoint | `bool` | 用户是否可以根据已经设置的曝光点调节曝光度 | `true` |
55+
| enablePinchToZoom | `bool` | 用户是否可以在界面上双指缩放相机对焦 | `true` |
56+
| maximumRecordingDuration | `Duration` | 录制视频最长时长 | `const Duration(seconds: 15)` |
57+
| theme | `ThemeData` | 选择器的主题 | `CameraPicker.themeData(C.themeColor)` |
58+
| textDelegate | `CameraPickerTextDelegate` | 控制部件中的文字实现 | `DefaultCameraPickerTextDelegate` |
59+
| resolutionPreset | `ResolutionPreset` | 相机的分辨率预设 | `ResolutionPreset.max` |
60+
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次90度 | `0` |
61+
| foregroundBuilder | `Widget Function(CameraValue)` | 覆盖在相机预览上方的前景构建 | null |
6062

6163
### 简单的使用方法
6264

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,20 @@ Reference:
7171

7272
## Usage 📖
7373

74-
| Name | Type | Description | Default Value |
75-
| ------------------------ | ------------------------------ | -------------------------------------------------------------------------------------------- | -------------------------------------- |
76-
| allowPinchToZoom | `bool` | Whether users can zoom the camera by pinch. | `true` |
77-
| allowRecording | `bool` | Whether the picker can record video. | `false` |
78-
| onlyAllowRecording | `bool` | Whether the picker can only record video. Only available when `isAllowRecording` is `true `. | `false` |
79-
| enableAudio | `bool` | Whether Whether the picker should record audio. Only available with recording. | `true` |
80-
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
81-
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
82-
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
83-
| resolutionPreset | `ResolutionPreset` | Present resolution for the camera. | `ResolutionPreset.max` |
84-
| cameraQuarterTurns | `int` | The number of clockwise quarter turns the camera view should be rotated. | `0` |
85-
| foregroundBuilder | `Widget Function(CameraValue)` | The foreground widget builder which will cover the whole camera preview. | null |
74+
| Name | Type | Description | Default Value |
75+
| ---------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------- | -------------------------------------- |
76+
| allowRecording | `bool` | Whether the picker can record video. | `false` |
77+
| onlyAllowRecording | `bool` | Whether the picker can only record video. Only available when `isAllowRecording` is `true `. | `false` |
78+
| enableAudio | `bool` | Whether Whether the picker should record audio. Only available with recording. | `true` |
79+
| enableSetExposure | `bool` | Whether users can set the exposure point by tapping. | `true` |
80+
| enableExposureControlOnPoint | `bool` | Whether users can adjust exposure according to the set point. | `true` |
81+
| enablePinchToZoom | `bool` | Whether users can zoom the camera by pinch. | `true` |
82+
| maximumRecordingDuration | `Duration` | The maximum duration of the video recording process. | `const Duration(seconds: 15)` |
83+
| theme | `ThemeData` | Theme data for the picker. | `CameraPicker.themeData(C.themeColor)` |
84+
| textDelegate | `CameraPickerTextDelegate` | Text delegate that controls text in widgets. | `DefaultCameraPickerTextDelegate` |
85+
| resolutionPreset | `ResolutionPreset` | Present resolution for the camera. | `ResolutionPreset.max` |
86+
| cameraQuarterTurns | `int` | The number of clockwise quarter turns the camera view should be rotated. | `0` |
87+
| foregroundBuilder | `Widget Function(CameraValue)` | The foreground widget builder which will cover the whole camera preview. | null |
8688

8789
### Simple usage
8890

0 commit comments

Comments
 (0)