GoRouter.dev

Flutter navigation / the field guide

Routes.
Without
detours.

Turn URLs into journeys. Deep links, nested stacks and authentication—mapped out, with the original guides kept in reach.

2026 edition · go_router 18.1.1 reference
Original EN + 日本語 guides preserved.

THE ROUTE EXPLORER● INTERACTIVE

/ HomeScreen

/books BookListScreen

:bookId BookScreen

/settings SettingsScreen

/sign-in SignInScreen

02 / ResultMatched03 / DestinationBookScreenPath parameters{"bookId":"42"}Query parameters{"tab":"notes"}

An illustrative JavaScript URL matcher. No Dart is executed. Your entries stay in this browser.

ONE LOCATION→A MATCHING ROUTE TREE→PREDICTABLE NAVIGATION/ mobile · web · desktop

01 / Build the mental model

A good route
has a reason.

Choose the question in front of you. Each guide connects the URL, the screen, and the way back.

02 / Small beginning. Clear direction.

From a path
to a page.

Declare a destination. Read its identifier. Let the router rebuild the right screen from a link—even when no button was clicked first.

Understand the route tree ↗
dart / example
final router = GoRouter(
  routes: [
    GoRoute(path: '/', builder: (_, __) => const HomeScreen()),
    GoRoute(
      path: '/books/:bookId',
      builder: (_, state) => BookScreen(
        id: state.pathParameters['bookId']!,
      ),
    ),
  ],
);

MaterialApp.router(routerConfig: router);

03 / The original map

History, without
the dead ends.

The early docs, Japanese translations, recordings and example source are back in reach. Old APIs stay in their own edition; the current guide shows the route forward.

Open the recovered collection ↗
227ORIGINAL SOURCE FILES RECOVERED
58 DOCUMENTATION + ILLUSTRATION FILES
ENGLISH + JAPANESE / SOURCE SNAPSHOT + RECOVERED HISTORY
Find your next route