Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit fa0faa3

Browse files
committed
[camera]use CameraAccessDenied for web permission request
1 parent 4660811 commit fa0faa3

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packages/camera/camera_web/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.0
2+
3+
* **Breaking Change** Renames error code `cameraPermission` to `CameraAccessDenied` to be consistent with other platforms.
4+
15
## 0.2.1+6
26

37
* Minor fixes for new analysis options.

packages/camera/camera_web/example/integration_test/camera_error_code_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void main() {
4646
testWidgets('permissionDenied', (WidgetTester tester) async {
4747
expect(
4848
CameraErrorCode.permissionDenied.toString(),
49-
equals('cameraPermission'),
49+
equals('CameraAccessDenied'),
5050
);
5151
});
5252

packages/camera/camera_web/lib/src/types/camera_error_code.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CameraErrorCode {
3232
/// The camera cannot be used or the permission
3333
/// to access the camera is not granted.
3434
static const CameraErrorCode permissionDenied =
35-
CameraErrorCode._('cameraPermission');
35+
CameraErrorCode._('CameraAccessDenied');
3636

3737
/// The camera options are incorrect or attempted
3838
/// to access the media input from an insecure context.

packages/camera/camera_web/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_web
22
description: A Flutter plugin for getting information about and controlling the camera on Web.
33
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera_web
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.2.1+6
5+
version: 0.3.0
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)