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(
tooltip: 'goBack home',
onPressed: () {
Navigator.popUntil(context, ModalRoute.withName(Routes.home));
Navigator.popUntil(context, ModalRoute.withName(Routes.root));
},
icon: Icon(Icons.home),
),