📜  颤振导航器删除所有路线并导航到新屏幕 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:44.637000             🧑  作者: Mango

代码示例1
Navigator.pushAndRemoveUntil(
        context,
        MaterialPageRoute(
          builder: (BuildContext context) => YourPageNameGoesHere(),
        ),
        (route) => false,//if you want to disable back feature set to false
);