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
6d6353e2
You need to sign in or sign up before continuing.
Commit
6d6353e2
authored
May 20, 2019
by
jinzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
079d3247
Hide 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 @
6d6353e2
...
@@ -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