Commit b8059ce1 authored by Q14's avatar Q14

Mergc

 branch 'master' of git.wanmeizhensuo.com:mobile/gmalpha_flutter
parents f3eadb2c 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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment