Question : im going from first screen to second and from there to third but dont want to go back in flutter
Answered by : aggressive-anaconda-nc7jq9dksvyx
Navigator.pushAndRemoveUntil( context, MaterialPageRoute(builder: (context) => MainPage()), (Route<dynamic> route) => false,
);
Source : https://stackoverflow.com/questions/50037710/flutter-move-to-a-new-screen-without-back | Last Update : Tue, 29 Dec 20
Question : Navigate to a new screen and back - Flutter
Answered by : sore-serval-d2a40v4h8jp2
Navigator.push( context, MaterialPageRoute(builder: (context) => SecondRoute()), );
Source : | Last Update : Sun, 19 Sep 21
Question : flutter navigate to new page without back
Answered by : rishikesh
Navigator.pushAndRemoveUntil( context, MaterialPageRoute(builder: (context) => MainPage()), (Route<dynamic> route) => false,
);
Source : https://stackoverflow.com/questions/50037710/flutter-move-to-a-new-screen-without-back/55946547#55946547 | Last Update : Fri, 17 Jul 20