Commit dc710ad1 authored by jinzhu's avatar jinzhu

udpate flutter

parent c2950920
...@@ -164,8 +164,13 @@ class _CommentSuggestPageState extends State<CommentSuggestPage> { ...@@ -164,8 +164,13 @@ class _CommentSuggestPageState extends State<CommentSuggestPage> {
} }
} }
).then((error){ ).then((error){
if (error != null) {
Toast.show(context, '提交失败'); Toast.show(context, '提交失败');
print(error); print(error);
} else {
FlutterBoost.singleton.closePageForContext(context);
}
}); });
} }
......
...@@ -42,7 +42,7 @@ class _MyAppState extends State<MyApp> { ...@@ -42,7 +42,7 @@ class _MyAppState extends State<MyApp> {
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
initialRoute: '/test',//调试的时候可以打开 initialRoute: '/test',//调试的时候可以打开
routes: { routes: {
'/': (context) => CommentSuggest({'cookie': '124'}), '/': (context) => CommentSuggest({"Cookie":" _gm_token=7e48641558699683; sessionid=nb3ze4ur7ucosln8sd8pzwojddenv9ym; _gtid=a1bc0a387e1911e996b9525400fa516d4094"}),
},//调试的时候可以打开 },//调试的时候可以打开
builder: FlutterBoost.init(postPush: _onRoutePushed), builder: FlutterBoost.init(postPush: _onRoutePushed),
theme: new ThemeData( theme: new ThemeData(
......
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