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
a6944e70
Commit
a6944e70
authored
Mar 17, 2021
by
Jan-Derk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PR
parent
20a49e1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
permission_handler/lib/permission_handler.dart
+2
-3
permission_handler/pubspec.yaml
+0
-3
No files found.
permission_handler/lib/permission_handler.dart
View file @
a6944e70
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/foundation.dart'
;
import
'dart:io'
;
import
'package:permission_handler_platform_interface/permission_handler_platform_interface.dart'
;
export
'package:permission_handler_platform_interface/permission_handler_platform_interface.dart'
...
...
@@ -34,7 +33,7 @@ extension PermissionActions on Permission {
/// This is only implemented on Android, calling this on iOS always returns
/// [false].
Future
<
bool
>
get
shouldShowRequestRationale
async
{
if
(
defaultTargetPlatform
!=
TargetPlatform
.
a
ndroid
)
{
if
(
!
Platform
.
isA
ndroid
)
{
return
false
;
}
...
...
permission_handler/pubspec.yaml
View file @
a6944e70
...
...
@@ -19,10 +19,7 @@ dependencies:
permission_handler_platform_interface
:
^3.1.0
dev_dependencies
:
flutter_test
:
sdk
:
flutter
effective_dart
:
^1.3.0
mockito
:
^5.0.0-nullsafety.7
plugin_platform_interface
:
^2.0.0
environment
:
...
...
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