onPressed: (){
Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (context) => new MyProduct()), (route) => route == null);
},
//MyProduct改为要跳转的页面就可以了
onPressed: (){
Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (context) => new MyProduct()), (route) => route == null);
},
//MyProduct改为要跳转的页面就可以了
本文标题:flutter 中登录页面成功后的跳转
本文链接:https://www.haomeiwen.com/subject/udvfkctx.html
网友评论