Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
b8059ce1
Commit
b8059ce1
authored
May 20, 2019
by
Q14
Browse files
Options
Browse Files
Download
Plain Diff
Mergc
branch 'master' of git.wanmeizhensuo.com:mobile/gmalpha_flutter
parents
f3eadb2c
6d6353e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
main.dart
lib/main.dart
+28
-4
No files found.
lib/main.dart
View file @
b8059ce1
...
@@ -35,12 +35,36 @@ class _MyAppState extends State<MyApp> {
...
@@ -35,12 +35,36 @@ class _MyAppState extends State<MyApp> {
FlutterBoost
.
handleOnStartPage
();
FlutterBoost
.
handleOnStartPage
();
}
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
return
MaterialApp
(
title:
'Flutter Boost example'
,
locale:
Locale
(
'en'
,
'US'
),
builder:
FlutterBoost
.
init
(
postPush:
_onRoutePushed
),
// locale: Locale('zh', 'CN'),
home:
Container
());
// localeResolutionCallback: (Locale locale, Iterable<Locale> supportedLocales) {
// return Locale('en', 'US');
// },
// localizationsDelegates: [
// NinghaoDemoLocalizationsDelegate(),
// GlobalMaterialLocalizations.delegate,
// GlobalWidgetsLocalizations.delegate,
// ],
supportedLocales:
[
Locale
(
'en'
,
'US'
),
Locale
(
'zh'
,
'CN'
),
],
debugShowCheckedModeBanner:
false
,
// home: NavigatorDemo(),
initialRoute:
'/test'
,
routes:
{
'/'
:
(
context
)
=>
CommentSuggest
(),
},
theme:
ThemeData
(
primarySwatch:
Colors
.
yellow
,
highlightColor:
Color
.
fromRGBO
(
255
,
255
,
255
,
0.5
),
splashColor:
Colors
.
white70
,
accentColor:
Color
.
fromRGBO
(
3
,
54
,
255
,
1.0
),
)
);
}
}
void
_onRoutePushed
(
void
_onRoutePushed
(
...
...
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