Flutter: Push, Pop, Push – Pooja Bhaumik

In Flutter, navigating between screens can be achieved by using the Navigator class, accessed either by using the widget tree’s BuildContext or by using a key. With it we can add (push) or remove (pop) screens from our app, add transition animations and even pass arguments to new screens. But with so many methods such as popAndPush, pushNamedAndRemoveUntil and pushReplacement, how do we know how they will impact the navigation stack we currently have?
Pooja Bhaumik takes a closer look at the Navigator class in her article to not only explain us the different ways we can use the class, but also what each different method does and what it will do to our navigation stack with specific use-cases.
Flutter: Push, Pop, Push – Flutter Community – Medium

Leave a Comment