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> {
FlutterBoost.handleOnStartPage();
}
@override
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Boost example',
builder: FlutterBoost.init(postPush: _onRoutePushed),
home: Container());
locale: Locale('en', 'US'),
// locale: Locale('zh', 'CN'),
// 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(
......
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