Answers for "flutter navigator remove all routes and navigate to a new screen"

0

flutter navigator remove all routes and navigate to a new screen

Navigator.pushAndRemoveUntil<dynamic>(
        context,
        MaterialPageRoute<dynamic>(
          builder: (BuildContext context) => YourPageNameGoesHere(),
        ),
        (route) => false,//if you want to disable back feature set to false
);
Posted by: Guest on March-01-2021

Code answers related to "flutter navigator remove all routes and navigate to a new screen"

Browse Popular Code Answers by Language