SKILL Instructions

Flutter go_router Navigation

Declarative routing with go_router

claude
cursor
#flutter
#navigation
#routing

About

Configure `go_router` for deep links, nested routes, and auth-gated redirects.

Metadata (SKILL.md frontmatter)

name
flutter-go-router
version
1.0.0

Instructions

go_router

  • Declare routes in a single GoRouter config.
  • Use ShellRoute for bottom-nav shells.
  • Guard routes with redirect: returning null or a path.
  • Access params with state.pathParameters['id'].