1.路由直接跳转到下一个页面:

Navigator.pushNamed(context,"/login");

2.跳转的下一个页面,替换当前的页面:

Navigator.of(context).pushReplacementNamed('/registerSecond');

3.返回上一个页面:

Navigator.of(context).pop();

4.清空堆栈路由,返回指定的路由:

Navigator.of(context).pushAndRemoveUntil(

  new MaterialPageRouter(builder:(context)=>new Tabs()),

  (route)=>route==null

);