Navigator.of(context).pushAndRemoveUntil( new MaterialPageRoute(builder: (context) => new MyApp() ), (route) => route == null);
//MyApp改为要跳转的页面就可以了,这样切换页面后没有返回键
Navigator.of(context).pushAndRemoveUntil( new MaterialPageRoute(builder: (context) => new MyApp() ), (route) => route == null);
//MyApp改为要跳转的页面就可以了,这样切换页面后没有返回键