flutter 中登录页面成功后的跳转

2019-07-09  本文已影响0人  Ezreallp
onPressed: (){       
    Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (context) => new MyProduct()), (route) => route == null);
},

//MyProduct改为要跳转的页面就可以了

上一篇 下一篇

猜你喜欢

热点阅读