Skip to content

Commit d998893

Browse files
committed
📝 Add CameraErrorHandler
1 parent b93a10f commit d998893

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README-ZH.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ Flutter SDK:`>=2.0.0` 。
7575
| cameraQuarterTurns | `int` | 摄像机视图顺时针旋转次数,每次90度 | `0` |
7676
| imageFormatGroup | `ImageFormatGroup` | 输出图像的格式描述 | `ImageFormatGroup.unknown` |
7777
| foregroundBuilder | `Widget Function(CameraValue)?` | 覆盖在相机预览上方的前景构建 | null |
78-
| onEntitySaving | `SaveEntityCallback?` | 在查看器中保存图片时的回调 | null |
78+
| onEntitySaving | `EntitySaveCallback?` | 在查看器中保存图片时的回调 | null |
79+
| onError | `CameraErrorHandler?` | 拍摄照片过程中的自定义错误处理 | null |
7980

8081
### 简单的使用方法
8182

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ Flutter SDK: `>=2.0.0` .
7676
| cameraQuarterTurns | `int` | The number of clockwise quarter turns the camera view should be rotated. | `0` |
7777
| imageFormatGroup | `ImageFormatGroup` | Describes the output of the raw image format. | `ImageFormatGroup.unknown` |
7878
| foregroundBuilder | `Widget Function(CameraValue)?` | The foreground widget builder which will cover the whole camera preview. | null |
79-
| onEntitySaving | `SaveEntityCallback?` | The callback type define for saving entity in the viewer. | null |
79+
| onEntitySaving | `EntitySaveCallback?` | The callback type define for saving entity in the viewer. | null |
80+
| onError | `CameraErrorHandler?` | The error handler when any error occurred during the picking process. | null |
8081

8182
### Simple usage
8283

0 commit comments

Comments
 (0)