//跳转并关闭当前页面
Navigator.pushAndRemoveUntil(
context,
new MaterialPageRoute(builder: (context) => new MyHomePage()),
(route) => route == null,
);
//跳转并关闭当前页面
Navigator.pushAndRemoveUntil(
context,
new MaterialPageRoute(builder: (context) => new MyHomePage()),
(route) => route == null,
);
本文标题:Flutter 跳转并关闭当前页面
本文链接:https://www.haomeiwen.com/subject/zrovaktx.html
网友评论