mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-01 21:06:42 +08:00
fixed: 回到首页报错
This commit is contained in:
@ -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),
|
||||
),
|
||||
|
Reference in New Issue
Block a user