flutter官方文档:https://docs.flutter.io/flutter/widgets/Navigator-class.html
Navigator.of(context).pushAndRemoveUntil(
new MaterialPageRoute(builder: (context) => new MyApp()
), (route) => route == null);
其中,把MyApp()换为要跳转的页面名
flutter官方文档:https://docs.flutter.io/flutter/widgets/Navigator-class.html
Navigator.of(context).pushAndRemoveUntil(
new MaterialPageRoute(builder: (context) => new MyApp()
), (route) => route == null);
其中,把MyApp()换为要跳转的页面名