If you’re a beginner, sit back and watch this whole video to learn what you’ll need to use most in your apps when it comes to navigating.

In just 10 minutes you can learn how to fully manipulate the navigation behavior of your apps. You’ll have no trouble going from one page to another in Flutter, or even going back one page or going back more than one page! (In my example we pop 2 pages using the Navigator.popUntil() method, but you can pop as many as you want with the same method).

The Navigator.popUntil method can be extremely useful so feel free to explore its full potential!

In this video, I also go over how named routes work and show a couple of different methods to use them.

Knowing all of this will make you a Flutter navigation master and you’ll never have trouble navigating/going between Flutter pages again.

Navigation Basics: https://flutter.dev/docs/cookbook/navigation/navigation-basics
“Navigate with named routes”: https://flutter.dev/docs/cookbook/navigation/named-routes

00:00 - Intro
00:37 - Documentation + Explaining Routes & Stacks
01:40 - Navigator.push (Going To New Page)
02:41 - Showing Navigation Logic
03:48 - Navigator.pop (Going Back A Page)
04:25 - Navigator.pushReplacement() (Replacing A Page From The Stack)
05:15 - “Popping” Multiple Pages (Popping Multiple Stack Pages)
05:50 - "Popping Back To First Page (Returning To First Stack Page)
06:45 - How Named Routes Work
08:14 - Navigator.pushNamed() (Go To A Named Route)
08:50 - “Popping” The First Stack Element
09:13 - Using Variables As Named Routes
10:37 - Like & Subscribe
10:50 - Flutter Mentor Out

#flutter #navigation #namedroutes

Credits:

OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library https://youtu.be/0IgndUb1YQI

#flutter #navigation #namedroutes

Everything You Should Know Navigating Pages (Named Routes + Pop Multiple Pages) - Flutter
1.45 GEEK