📜  推送和删除直到颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:07.644000             🧑  作者: Mango

代码示例2
//named
Navigator.of(context)
    .pushNamedAndRemoveUntil('/login', (Route route) => false);
    
//not named
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (context) =>
    LoginScreen()), (Route route) => false),