Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
62768a8c
Commit
62768a8c
authored
Feb 24, 2021
by
daniel.roek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permission handler nullsafety migration
parent
ed0ad521
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
permission_handler/CHANGELOG.md
+4
-0
permission_handler/example/pubspec.yaml
+1
-1
permission_handler/lib/permission_handler.dart
+1
-1
permission_handler/pubspec.yaml
+3
-3
No files found.
permission_handler/CHANGELOG.md
View file @
62768a8c
## 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);
...
...
permission_handler/example/pubspec.yaml
View file @
62768a8c
...
...
@@ -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
...
...
permission_handler/lib/permission_handler.dart
View file @
62768a8c
...
...
@@ -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
;
}
}
...
...
permission_handler/pubspec.yaml
View file @
62768a8c
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment