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
bc2fc3be
Commit
bc2fc3be
authored
Feb 12, 2021
by
daniel.roek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Platform interface nullsafety migration
parent
323dd288
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
permission_handler_platform_interface/CHANGELOG.md
+4
-0
permission_handler_platform_interface/lib/src/method_channel/method_channel_permission_handler.dart
+5
-3
permission_handler_platform_interface/pubspec.yaml
+5
-5
No files found.
permission_handler_platform_interface/CHANGELOG.md
View file @
bc2fc3be
## 3.0.0-nullsafety
*
Migrated to null safety.
## 2.0.2
*
Added support for the limited photos permission available on iOS 14 and up.
...
...
permission_handler_platform_interface/lib/src/method_channel/method_channel_permission_handler.dart
View file @
bc2fc3be
...
...
@@ -51,8 +51,10 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform {
/// Returns [true] if the app settings page could be opened, otherwise
/// [false].
Future
<
bool
>
openAppSettings
()
async
{
final
wasOpened
=
await
_methodChannel
.
invokeMethod
(
'openAppSettings'
);
return
wasOpened
;
final
wasOpened
=
await
_methodChannel
.
invokeMethod
(
'openAppSettings'
);
return
wasOpened
??
false
;
}
/// Requests the user for access to the supplied list of [Permission]s, if
...
...
@@ -77,6 +79,6 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform {
final
shouldShowRationale
=
await
_methodChannel
.
invokeMethod
(
'shouldShowRequestPermissionRationale'
,
permission
.
value
);
return
shouldShowRationale
;
return
shouldShowRationale
??
false
;
}
}
permission_handler_platform_interface/pubspec.yaml
View file @
bc2fc3be
...
...
@@ -3,20 +3,20 @@ description: A common platform interface for the permission_handler plugin.
homepage
:
https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version
:
2.0.2
version
:
3.0.0-nullsafety
dependencies
:
flutter
:
sdk
:
flutter
meta
:
^1.0.5
plugin_platform_interface
:
^1.
0.2
plugin_platform_interface
:
^1.
1.0-nullsafety
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
^
4.1.1
effective_dart
:
^1.
2.1
mockito
:
^
5.0.0-nullsafety
effective_dart
:
^1.
3.0
environment
:
sdk
:
"
>=2.
6.
0
<3.0.0"
sdk
:
"
>=2.
12.0-
0
<3.0.0"
flutter
:
"
>=1.9.1+hotfix.4
<2.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