Properties
Optional label for the route, used for named navigation.
The URL pattern for this route. Must start with ’/’. Supports path parameters using ’:’ syntax, e.g., ‘/user/:id’.
Function that builds the widget for this route.
The type of page transition to use.
Whether this route should be displayed as a fullscreen dialog.
The barrier color for modal routes.
Optional metadata associated with this route.
Optional custom page builder for this route. If provided, this takes precedence over the default page building logic.
Routes can be grouped together by setting a common
group name. By default, Flutter identifies routes with unique URLs as unique pages. Setting a group alias overrides the default behavior and identifies those routes as the same page.The parsed URI from
url.The canonical path from
url.The query parameters extracted from
url.Constructor
Optional label for named navigation.
The URL pattern. Must start with ’/’.
Function that builds the widget for this route.
The type of page transition to use.
Whether to display as a fullscreen dialog.
The barrier color for modal routes.
Optional metadata.
Optional group name for grouping related routes.
Optional custom page builder.
Type definitions
NavigationPageFactory
CustomPageBuilder
OnUnknownRoute
Enums
PageType
Types of page transitions available for navigation.material- Material Design page transition (default)transparent- Transparent page transition (allows underlying page to show through)cupertino- Cupertino (iOS-style) page transition