📜  如何在颤动中清除上一个屏幕 - 无论代码示例

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

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