Interactive tutorial

Navigation and Routing Between Flutter Screens

Build a Flutter app with predictable screen navigation, URL-based routes, shared navigation, and a simulated sign-in flow. You will pass data to screens, return results, handle invalid links, and verify navigation locally, including direct links and browser behavior.

  • Level: Intermediate
  • Duration: approx. 47 min
  • 10 steps
Navigation and Routing Between Flutter Screens

What you will go through

  1. Step 1 of 10 3 min Understand Screens, Routes, and the Navigation Stack Build a mental model of Flutter screens, routes, route stacks, and when URL-based routing becomes necessary.
  2. Step 2 of 10 4 min Open and Close a Screen with Navigator Use Flutter Navigator to open a local product-detail screen with constructor data, then return to Home by removing the current route.
  3. Step 3 of 10 4 min Return a Typed Result Safely Receive a product selection from a Navigator route, distinguish cancellation, and safely show local confirmation feedback.
  4. Step 4 of 10 5 min Configure URL-Based Routing with go_router Configure a single stable go_router setup for Home and Cart, then handle unmatched locations with a router fallback.
  5. Step 5 of 10 5 min Pass Data Through Paths and Query Parameters Resolve RouteLab product URLs into validated catalog data, normalize an optional view query, and distinguish route matching failures from missing product data.
  6. Step 6 of 10 5 min Choose go, push, or pop Intentionally Select go, push, or pop based on destination, back behavior, and result exchange.
  7. Step 7 of 10 5 min Keep Shared Navigation Visible with ShellRoute Create a persistent RouteLab shell around Home, product, and Cart routes while deriving NavigationBar selection from the current route path.
  8. Step 8 of 10 6 min Guard a Destination Without Redirect Loops Protect Cart with an in-memory sign-in redirect, validate its return destination, and avoid redirect loops.
  9. Step 9 of 10 5 min Verify Direct Links and Back Navigation Locally Run a focused local verification pass in Chrome to distinguish URL resolution, browser history, app-stack behavior, and in-memory session reset.
  10. Step 10 of 10 6 min Complete and Review the RouteLab Navigation Flow Integrate the final RouteLab behavior, run a local acceptance journey, and justify the decisions that make navigation predictable.

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate