The Complete Flutter Course: Build Android, iOS and Web Apps

Flutter navigation and routing

For learners tackling navigation in a multi-screen Flutter app, including web addresses that work like a website's, The Complete Flutter Course: Build Android, iOS and Web Apps introduces page navigation in a small test project. This guide follows those approaches into width-based routing for each portfolio page and makes the limit clear: the course does not teach go_router.

Taught by Sagnik Bhattacharya and Paulina Knop

The Complete Flutter Course: Build Android, iOS and Web Apps: Sagnik Bhattacharya and Paulina Knop

What you will be able to do

You will be able to:

  • Use Navigator.push to open a screen and Navigator.pop to return.
  • Define page names in a routes map, select a starting page with initialRoute and navigate with pushNamed.
  • Create a routes class using onGenerateRoute to supply page data and return an error page for unknown addresses.
  • Give Flutter web pages website-style addresses by removing the hash sign.
  • Choose web or phone layouts for each site page according to screen width, and connect each navigation tab to its destination.

Projects

What you will build.

The course has nine projects. These two matter most here.

  • Project 05

    Navigation app

    Explore the navigation approaches separately in a small test project before applying them to a working site.

  • Project 04

    Portfolio website and app

    Follow width-based routing for the landing, contact, about, blog and works pages, selecting a web or phone layout for each.

Lessons

The lessons that matter, in course order.

The Complete Flutter Course: Build Android, iOS and Web Apps has 223 lessons. This page picks out 11 of them, 1 h 21 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 82 Navigator.push and Navigator.pop

Begin with Lesson 82. Its navigation exercises have their own small test project and require only the Dart and widget basics covered earlier. Continue with the portfolio routing from Lesson 87 after creating the landing page that begins at Lesson 47, to apply those routes to a real site.

11 of 223 lessons · 1 h 21 min

10 Navigation in Flutter 5 lessons · 43 min Practise push and pop with Navigator and MaterialPageRoute, then MaterialApp named routes, pushNamed and initialRoute. Build a routes class using onGenerateRoute, followed by arguments, an error page and hash-free addresses.
  1. 82 Start here Navigator.push and Navigator.pop Move between two test pages with MaterialPageRoute 7 min
  2. 83 Named routes in MaterialApp A routes map with names for the home and about pages 4 min
  3. 84 Navigating with pushNamed and initialRoute Route names in the address bar and a value passed to a page 7 min
  4. 85 A routes class with onGenerateRoute A switch on RouteSettings in a routes file of its own 9 min
  5. 86 Route arguments, an error page and clean URLs Pass data, remove the # and choose a layout by screen width 16 min
11 Mobile Landing Page - Flutter Portfolio 1 of 12 lessons · 6 min Set up the portfolio routes file to select phone or web layouts by width, return home for unmatched addresses and use clean web addresses.
  1. 87 Responsive routes for the portfolio Web or mobile by width, a home fallback and url_strategy 6 min
11 Mobile Landing Page - Flutter Portfolio 1 of 12 lessons · 4 min Connect each navigation tab to its destination using pushNamed in the phone layout and a GestureDetector on the web.
  1. 98 Linking the tabs to their pages Each tab calls pushNamed, with a GestureDetector on TabsWeb 4 min
12 Contact Page - (Flutter Portfolio) 1 of 8 lessons · 10 min Define /contact so screen width determines whether the contact page uses its phone or web layout.
  1. 99 Starting the Contact page A /contact route by width and a drawer with social links 10 min
13 About Page - Flutter Portfolio 1 of 6 lessons · 7 min Include the about page in the routes and use screen width to select its layout.
  1. 107 Set up the About page and its route Mobile AppBar and drawer, and a left-aligned landing page 7 min
14 Blog and Works Page - Flutter Portfolio 1 of 10 lessons · 5 min Introduce routing for the blog page alongside its drawer and header.
  1. 113 Start the Blog page: route, drawer and header NestedScrollView with a SliverAppBar and FlexibleSpaceBar 5 min
14 Blog and Works Page - Flutter Portfolio 1 of 10 lessons · 5 min Add the works page route to complete the destinations reached through the portfolio navigation.
  1. 120 Start the Works page: route and header WorksWeb copies the Contact page's SliverAppBar and drawer 5 min

Instructors

Who teaches it.

Paulina Knop smiling, shoulder-length brown hair, wearing a black top.

Instructor, Flutter

Paulina Knop

Flutter developer and curriculum designer. Teaches the Flutter course.

Questions

Asked before starting.

Which course teaches me to navigate between Flutter screens?

The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids covers navigation in a dedicated test project before applying it to a real site. The test project introduces Navigator.push and pop, named routes, onGenerateRoute with arguments, an error page and clean web addresses. The portfolio uses screen width to route its landing, contact, about, blog and works pages. This guide selects 11 lessons, taking 1 hour 21 minutes. It is suited to learners seeking a solid understanding of Navigator, but does not cover go_router.

Will I learn both Navigator push and pop and named routes?

Yes. The Complete Flutter Course: Build Android, iOS and Web Apps begins by moving between a pair of test pages with Navigator.push and pop. It then introduces MaterialApp's routes map, pushNamed and initialRoute before creating a routes class with onGenerateRoute. Flutter's documentation now discourages named routes for most apps: a deep link always pushes a new page, and browser forward navigation is unsupported. Use this material as a foundation before moving to a routing package.

How can I pass data to the next screen?

The route carries the data. Navigator.push lets you supply it through the destination widget's constructor. For named routes, supply arguments to pushNamed and retrieve them on the destination page. With onGenerateRoute, a routes class takes arguments from RouteSettings and uses them to construct the page, with the routes kept together in a file. The Complete Flutter Course: Build Android, iOS and Web Apps demonstrates passing a value at Lesson 84, then passing route arguments through onGenerateRoute at Lesson 86.

Does the course teach go_router or just Navigator?

The Complete Flutter Course: Build Android, iOS and Web Apps teaches Navigator, not go_router, the Router API or nested navigation. Flutter's documentation recommends a routing package such as go_router for apps involving deep links or several navigators. That makes a package a natural follow-on: these lessons first establish practical knowledge of routes, arguments, error pages and web addresses.

Can I get rid of the hash sign in Flutter web addresses?

Yes. Flutter web addresses include a hash before the page path by default. Path-style addresses remove it, changing /#/about to /about. The Complete Flutter Course: Build Android, iOS and Web Apps demonstrates this using url_strategy at Lesson 86 and repeats it for the portfolio at Lesson 87. The url_strategy package has since been discontinued; Flutter's own usePathUrlStrategy function provides the same behaviour instead.

How can I route an unknown address to an error page?

Handle unmatched names in the routes class. With onGenerateRoute, each address comes through RouteSettings; a switch on its name selects the page, while the default case returns an error page when no name matches. The Complete Flutter Course: Build Android, iOS and Web Apps implements this at Lesson 86. The portfolio routing introduced at Lesson 87 instead returns the home page for unrecognised addresses.

Flutter

See the whole course.

The Complete Flutter Course: Build Android, iOS and Web Apps: 25 hours of video in 223 lessons, built around 9 projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.