Commit 62768a8c by daniel.roek

permission handler nullsafety migration

parent ed0ad521
## 6.0.0
* Migrated to null safety
## 5.1.0+2
* Solve mismatch with permission constants between Dart and Android (due to addition of permission on iOS);
......
......@@ -15,7 +15,7 @@ dev_dependencies:
permission_handler:
path: ../
url_launcher: ^6.0.0-nullsafety.6
url_launcher: ^6.0.0
flutter:
uses-material-design: true
......
......@@ -47,7 +47,7 @@ extension PermissionActions on Permission {
/// Returns the new [PermissionStatus].
Future<PermissionStatus> request() async {
final permissionStatus = (await [this].request())[this];
return permissionStatus!;
return permissionStatus ?? PermissionStatus.denied;
}
}
......
name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 6.0.0-nullsafety
version: 6.0.0
homepage: https://github.com/baseflowit/flutter-permission-handler
flutter:
......@@ -16,11 +16,11 @@ dependencies:
flutter:
sdk: flutter
meta: ^1.3.0
permission_handler_platform_interface: ^3.0.0-nullsafety
permission_handler_platform_interface: ^3.0.0
dev_dependencies:
effective_dart: ^1.3.0
plugin_platform_interface: ^1.0.3
plugin_platform_interface: ^2.0.0
environment:
sdk: ">=2.12.0-0 <3.0.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment