fixed: 回到首页报错

This commit is contained in:
sanfan.hx
2019-09-17 17:43:27 +08:00
parent 11c2e619c3
commit 43ff828b0d

View File

@ -185,7 +185,7 @@ class _WidgetDemoState extends State<WidgetDemo> {
new IconButton( new IconButton(
tooltip: 'goBack home', tooltip: 'goBack home',
onPressed: () { onPressed: () {
Navigator.popUntil(context, ModalRoute.withName(Routes.home)); Navigator.popUntil(context, ModalRoute.withName(Routes.root));
}, },
icon: Icon(Icons.home), icon: Icon(Icons.home),
), ),