Commit f0fcbac3 by daniel.roek

Updated version and docs

parent 5b7414d2
...@@ -137,12 +137,12 @@ You can remove permissions you don't use: ...@@ -137,12 +137,12 @@ You can remove permissions you don't use:
## How to use ## How to use
There are a number of [`Permission`](https://pub.dev/documentation/permission_handler_platform_interface/latest/permission_handler_platform_interface/Permission-class.html#constants)s. There are a number of [`Permission`](https://pub.dev/documentation/permission_handler_platform_interface/latest/permission_handler_platform_interface/Permission-class.html#constants)s.
You can get a `Permission`'s `status`, which is either `undetermined`, `granted`, `denied`, `restricted` or `permanentlyDenied`. You can get a `Permission`'s `status`, which is either `granted`, `denied`, `restricted` or `permanentlyDenied`.
```dart ```dart
var status = await Permission.camera.status; var status = await Permission.camera.status;
if (status.isUndetermined) { if (status.denied) {
// We didn't ask for permission yet. // We didn't ask for permission yet or the permission has been denied before but not permanently.
} }
// You can can also directly ask the permission about its status. // You can can also directly ask the permission about its status.
......
## 6.0.0 ## 6.0.0
* Migrated to null safety * Migrated to null safety
* Removed PermissionStatus.undetermined, PermissionStatus.denied will be used instead.
## 5.1.0+2 ## 5.1.0+2
......
...@@ -16,7 +16,7 @@ dependencies: ...@@ -16,7 +16,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
meta: ^1.3.0 meta: ^1.3.0
permission_handler_platform_interface: ^3.0.0 permission_handler_platform_interface: ^3.0.0+1
dev_dependencies: dev_dependencies:
effective_dart: ^1.3.0 effective_dart: ^1.3.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