📅  最后修改于: 2022-03-11 14:55:07.644000             🧑  作者: Mango
//named
Navigator.of(context)
.pushNamedAndRemoveUntil('/login', (Route route) => false);
//not named
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (context) =>
LoginScreen()), (Route route) => false),