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