How to Navigator pop before Navigator push?

 Use Navigator.popAndPush for this

Navigator.popAndPushNamed(context, '/newroute');

Post a Comment

Previous Post Next Post

Subscribe Us


Get tutorials, Flutter news and other exclusive content delivered to your inbox. Join 1000+ growth-oriented Flutter developers subscribed to the newsletter

100% value, 0% spam. Unsubscribe anytime