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
4e59eff0
Commit
4e59eff0
authored
Jul 02, 2020
by
danielroek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved DartDocs
parent
d29751ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
permission_handler/example/lib/main.dart
+4
-3
permission_handler/example/lib/template/globals.dart
+2
-2
No files found.
permission_handler/example/lib/main.dart
View file @
4e59eff0
...
@@ -7,7 +7,7 @@ void main() {
...
@@ -7,7 +7,7 @@ void main() {
runApp
(
BaseflowPluginExample
());
runApp
(
BaseflowPluginExample
());
}
}
///
Baseflow Plugin Example applicatio
n
///
A Flutter application demonstrating the functionality of this plugi
n
class
BaseflowPluginExample
extends
StatelessWidget
{
class
BaseflowPluginExample
extends
StatelessWidget
{
/// [MaterialColor] to be used in the app [ThemeData]
/// [MaterialColor] to be used in the app [ThemeData]
final
MaterialColor
themeMaterialColor
=
final
MaterialColor
themeMaterialColor
=
...
@@ -56,7 +56,7 @@ class BaseflowPluginExample extends StatelessWidget {
...
@@ -56,7 +56,7 @@ class BaseflowPluginExample extends StatelessWidget {
);
);
}
}
/// Creates
[MaterialColor] based on
[Color]
/// Creates
a [MaterialColor] based on the supplied
[Color]
static
MaterialColor
createMaterialColor
(
Color
color
)
{
static
MaterialColor
createMaterialColor
(
Color
color
)
{
List
strengths
=
<
double
>[.
05
];
List
strengths
=
<
double
>[.
05
];
Map
swatch
=
<
int
,
Color
>{};
Map
swatch
=
<
int
,
Color
>{};
...
@@ -83,7 +83,8 @@ class AppHome extends StatefulWidget {
...
@@ -83,7 +83,8 @@ class AppHome extends StatefulWidget {
/// Constructs the [AppHome] class
/// Constructs the [AppHome] class
AppHome
({
Key
key
,
this
.
title
})
:
super
(
key:
key
);
AppHome
({
Key
key
,
this
.
title
})
:
super
(
key:
key
);
/// Application title
/// The [title] of the application, which is shown in the application's
/// title bar.
final
String
title
;
final
String
title
;
@override
@override
...
...
permission_handler/example/lib/template/globals.dart
View file @
4e59eff0
...
@@ -25,13 +25,13 @@ const EdgeInsets defaultHorizontalPadding =
...
@@ -25,13 +25,13 @@ const EdgeInsets defaultHorizontalPadding =
/// [EdgeInsets] to define vertical padding throughout the application.
/// [EdgeInsets] to define vertical padding throughout the application.
const
EdgeInsets
defaultVerticalPadding
=
EdgeInsets
.
symmetric
(
vertical:
24
);
const
EdgeInsets
defaultVerticalPadding
=
EdgeInsets
.
symmetric
(
vertical:
24
);
/// Returns [List] with [IconData] to show in the [AppHome] [AppBar].
/// Returns
a
[List] with [IconData] to show in the [AppHome] [AppBar].
final
List
<
IconData
>
icons
=
[
final
List
<
IconData
>
icons
=
[
Icons
.
list
,
Icons
.
list
,
Icons
.
info_outline
,
Icons
.
info_outline
,
];
];
/// Returns
[List] with [Widget]'
s to construct pages in the [AppBar].
/// Returns
a [List] with [Widget]
s to construct pages in the [AppBar].
final
List
<
Widget
>
pages
=
[
final
List
<
Widget
>
pages
=
[
PermissionList
(),
PermissionList
(),
InfoPage
(),
InfoPage
(),
...
...
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