File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.3+2
2
+
3
+ - ` web: 1.0.0 ` compatibility: ` PermissionDescriptor ` was removed in web package.
4
+
1
5
## 0.1.3+1
2
6
3
7
- Fixes the PermissionDescriptor Error when getting the permission status.
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class WebDelegate {
63
63
Future <PermissionStatus > _permissionStatusState (
64
64
String webPermissionName, web.Permissions ? permissions) async {
65
65
final webPermissionStatus = await permissions
66
- ? .query (web. PermissionDescriptor (name: webPermissionName))
66
+ ? .query (_PermissionDescriptor (name: webPermissionName))
67
67
.toDart;
68
68
return _toPermissionStatus (webPermissionStatus? .state);
69
69
}
@@ -228,3 +228,11 @@ class WebDelegate {
228
228
}
229
229
}
230
230
}
231
+
232
+ // copied from https://github.com/dart-lang/web/commit/7604578eb538c471d438608673c037121d95dba5#diff-6f4c7956b6e25b547b16fc561e54d5e7d520d2c79a59ace4438c60913cc2b1a2L35-L40
233
+ extension type _PermissionDescriptor ._(JSObject _) implements JSObject {
234
+ external factory _PermissionDescriptor ({required String name});
235
+
236
+ external set name (String value);
237
+ external String get name;
238
+ }
Original file line number Diff line number Diff line change 1
1
name : permission_handler_html
2
2
description : Permission plugin for Flutter. This plugin provides the web API to request and check permissions.
3
- version : 0.1.3+1
3
+ version : 0.1.3+2
4
4
5
5
homepage : https://github.com/baseflow/flutter-permission-handler
6
6
7
7
environment :
8
- sdk : " >=3.0.5 <4.0.0"
8
+ sdk : " >=3.3.0 <4.0.0"
9
9
flutter : " >=3.16.0"
10
10
11
11
dependencies :
You can’t perform that action at this time.
0 commit comments