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
523f53ff
Commit
523f53ff
authored
Feb 12, 2021
by
daniel.roek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permission handler nullsafety migration
parent
bc2fc3be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
permission_handler/example/lib/main.dart
+3
-3
permission_handler/example/pubspec.yaml
+2
-2
permission_handler/lib/permission_handler.dart
+2
-1
permission_handler/pubspec.yaml
+6
-6
No files found.
permission_handler/example/lib/main.dart
View file @
523f53ff
...
...
@@ -74,18 +74,18 @@ class BaseflowPluginExample extends StatelessWidget {
1
,
);
}
return
MaterialColor
(
color
.
value
,
swatch
);
return
MaterialColor
(
color
.
value
,
swatch
as
Map
<
int
,
Color
>
);
}
}
/// A Flutter example demonstrating how the [pluginName] plugin could be used
class
AppHome
extends
StatefulWidget
{
/// Constructs the [AppHome] class
AppHome
({
Key
key
,
this
.
title
})
:
super
(
key:
key
);
AppHome
({
Key
?
key
,
this
.
title
})
:
super
(
key:
key
);
/// The [title] of the application, which is shown in the application's
/// title bar.
final
String
title
;
final
String
?
title
;
@override
_AppHomeState
createState
()
=>
_AppHomeState
();
...
...
permission_handler/example/pubspec.yaml
View file @
523f53ff
...
...
@@ -2,7 +2,7 @@ name: permission_handler_example
description
:
Demonstrates how to use the permission_handler plugin.
environment
:
sdk
:
"
>=2.1
.
0
<3.0.0"
sdk
:
"
>=2.1
2.0-
0
<3.0.0"
dependencies
:
flutter
:
...
...
@@ -15,7 +15,7 @@ dev_dependencies:
permission_handler
:
path
:
../
url_launcher
:
^
5.4.11
url_launcher
:
^
6.0.0-nullsafety.6
flutter
:
uses-material-design
:
true
...
...
permission_handler/lib/permission_handler.dart
View file @
523f53ff
...
...
@@ -46,7 +46,8 @@ extension PermissionActions on Permission {
///
/// Returns the new [PermissionStatus].
Future
<
PermissionStatus
>
request
()
async
{
return
(
await
[
this
].
request
())[
this
];
final
permissionStatus
=
(
await
[
this
].
request
())[
this
];
return
permissionStatus
!;
}
}
...
...
permission_handler/pubspec.yaml
View file @
523f53ff
name
:
permission_handler
description
:
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version
:
5.1.0+2
version
:
6.0.0-nullsafety
homepage
:
https://github.com/baseflowit/flutter-permission-handler
flutter
:
...
...
@@ -15,13 +15,13 @@ flutter:
dependencies
:
flutter
:
sdk
:
flutter
meta
:
^1.
1.6
permission_handler_platform_interface
:
^
2.0.2
meta
:
^1.
3.0
permission_handler_platform_interface
:
^
3.0.0-nullsafety
dev_dependencies
:
effective_dart
:
^1.
2.1
plugin_platform_interface
:
^1.0.
1
effective_dart
:
^1.
3.0
plugin_platform_interface
:
^1.0.
3
environment
:
sdk
:
"
>=2.
7.
0
<3.0.0"
sdk
:
"
>=2.
12.0-
0
<3.0.0"
flutter
:
"
>=1.12.8
<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