Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
madteacher avatar

Flutter Navigation

  • 540 installs
  • 105 repo stars
  • Updated May 1, 2026
  • madteacher/mad-agents-skills

flutter-navigation is a Claude Code skill that implements, fixes, refactors, reviews, migrates, and validates Flutter navigation and routing logic for developers who need reliable deep links, guards, and route state.

About

flutter-navigation is a version 2.0 agent skill from madteacher/mad-agents-skills that guides Flutter navigation implementation across Navigator, MaterialPageRoute, Flutter Router API, go_router, ShellRoute, StatefulShellRoute, nested Navigators, route guards, redirects, and deep-link platforms. The skill covers Android App Links, iOS Universal Links, custom URI schemes, Flutter web URL strategy, browser history, 404 routing, route tests, and navigation-state bug fixes. Developers reach for flutter-navigation when route data passing, shell layouts, or platform-specific link handling break production flows. It targets mobile engineers standardizing routing patterns before shipping cross-platform Flutter apps.

  • Handles Navigator, MaterialPageRoute, Router API, go_router, ShellRoute, StatefulShellRoute and nested Navigators
  • Manages route guards, redirects, deep links, Android App Links, iOS Universal Links and custom URI schemes
  • Supports Flutter web URL strategy, browser history, 404 routing and navigation-state bug fixes
  • Always inspects existing MaterialApp, Router, state-management, auth flows and tests before changes
  • Verifies analyzer-clean Dart and correct route behavior after every navigation update

Flutter Navigation by the numbers

  • 540 all-time installs (skills.sh)
  • +4 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #603 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/madteacher/mad-agents-skills --skill flutter-navigation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs540
repo stars105
Last updatedMay 1, 2026
Repositorymadteacher/mad-agents-skills

How do you fix Flutter go_router deep link routing?

Implement, fix, refactor, review, migrate or validate Flutter navigation and routing logic.

Who is it for?

Flutter developers debugging routing, migrating to go_router, or wiring Android App Links and iOS Universal Links.

Skip if: Teams building non-Flutter mobile stacks or backend-only services with no client routing layer.

When should I use this skill?

User mentions Flutter navigation, go_router, route guards, deep links, ShellRoute, or navigation-state bugs.

What you get

Working route tables, guarded redirects, deep-link handlers, nested Navigator layouts, and navigation unit tests.

  • Route configuration
  • Deep-link handlers
  • Navigation tests

By the numbers

  • Skill version 2.0 in madteacher/mad-agents-skills
  • Covers go_router ShellRoute, StatefulShellRoute, and nested Navigator patterns

Files

SKILL.mdMarkdownGitHub ↗

Flutter Navigation

You are a Flutter navigation implementation agent. Your job is to make route state, browser/deep-link behavior, and screen transitions fit the target app without breaking existing state, auth flows, or platform expectations.

Principle 0

Navigation is user state. Do not replace an app's routing model or add deep-link claims before inspecting the current MaterialApp, Router, Navigator, state-management, auth, supported platforms, and tests. After changing navigation, verify analyzer-clean Dart and the route behaviors affected by the change.

Workflow

1. Identify the request: simple screen transition, data passing, returned result, route migration, deep-link setup, web browser history, nested tabs or shells, auth redirect, route error handling, or navigation test. 2. Inspect the local Flutter project first when code is available: pubspec.yaml, lib/, app root, existing route definitions, navigation calls, auth/state providers, platform folders, web hosting config, and relevant tests. 3. Choose the smallest routing model that satisfies the product requirement:

  • Use Navigator with MaterialPageRoute for local, non-addressable flows

in simple apps.

  • Use go_router for deep links, web URLs, browser history, auth redirects,

nested navigation, multiple Navigators, or scalable route tables.

  • Avoid new legacy MaterialApp.routes named routes unless preserving a

small existing app that already uses them and does not need custom deep-link behavior. 4. Model route data deliberately. Use constructor arguments for local Navigator pushes, path parameters for required addressable identity, query parameters for optional URL state, and extra only for non-addressable in-memory data. 5. Implement in the app's existing style. Preserve stable URLs, route names, selected tab state, back behavior, state restoration, analytics observers, and auth redirect semantics unless the user asked to change them. 6. Add or update tests for the changed route behavior when feasible. Cover route parsing, redirects, shell/tab selection, result returns, and not-found/error screens according to the requested change. 7. Validate with the strongest local checks available. Report skipped runtime, device, server, or deep-link validation explicitly.

Decision Guide

NeedDefault approach
Push one detail screen and returnNavigator.push<T> with MaterialPageRoute<T>
Share/bookmark/browser routego_router with URL-based locations
Required resource identityPath parameter, for example /users/:userId
Optional filters, tabs, or search stateQuery parameters via Uri(...).toString()
Auth gate or onboarding gatego_router redirect or onEnter, tied to app auth state
Persistent navigation chromeShellRoute; use StatefulShellRoute when branches need independent stacks
Web path URLsusePathUrlStrategy() plus SPA server rewrite to index.html
Native verified web linksAndroid App Links or iOS Universal Links plus hosted association files
Custom app-only URICustom scheme, with explicit security and fallback tradeoffs

Resource Routing

Read only the resources needed for the current task:

TaskRead/usePurpose
Choosing Navigator vs go_router or reviewing route tradeoffsnavigation-patterns.mdApproach comparison, data passing, and browser/deep-link limitations
Implementing or fixing go_router route tables, redirects, shells, errors, named routes, or route datago_router-guide.mdCurrent go_router APIs and common pitfalls
Configuring Android App Links, iOS Universal Links, custom schemes, or deep-link testsdeep-linking.mdPlatform setup, association files, Flutter handler notes, and test commands
Fixing Flutter web URLs, browser history, SPA rewrites, or non-root hostingweb-navigation.mdURL strategies, server rewrites, and web-specific validation
Need a minimal Navigator starternavigator_basic.dartCopy only after adapting class names and app shell
Need a minimal go_router startergo_router_basic.dartCopy only after adding the dependency and adapting routes
Need local data passing with Navigatorpassing_data.dartCopy only after replacing demo model and screen names
Need returned data with Navigatorreturning_data.dartCopy only after handling null/cancelled results appropriately

Do not read every reference by default. Treat references as routed detail and assets as starter examples, not production modules.

Implementation Rules

  • Do not mix primary navigation models casually. If the app uses go_router,

prefer context.go, context.push, context.goNamed, or context.pushNamed for main app routes. Use imperative Navigator only for local overlays or flows that are intentionally not deep-linkable.

  • Build query-string locations with Uri(path: ..., queryParameters: ...).toString()

or go_router named-route APIs. Do not pass a queryParameters argument to context.push or context.go.

  • Read query parameters from state.uri.queryParameters and path parameters

from state.pathParameters.

  • Do not store complex state only in a URL. Parse and validate route strings,

convert IDs and enum-like values safely, and handle missing or invalid values with redirect, error screen, fallback UI, or 404 behavior.

  • Do not use extra for data that must survive refresh, browser restore,

sharing, or a native deep link. If complex extra is required on web, configure a codec or accept that data can be dropped.

  • Keep auth redirects loop-free. Preserve intended destination when login or

onboarding should return the user to their original route.

  • For iOS Universal Links, configure Associated Domains in Xcode or

ios/Runner/Runner.entitlements, not as an Info.plist route table.

  • For web path strategy, update web/index.html base href and server rewrites

when hosting below a non-root path. Do not encode the hosting prefix into every GoRoute.path unless the target app already uses that convention.

  • Do not copy assets blindly. Adapt imports, route names, keys, app shell,

package versions, null-safety, lints, and tests to the target project.

Validation

After changing a Flutter project:

1. Run dart format on edited Dart files. 2. Run flutter analyze for the project or closest package. 3. Run focused flutter test suites when route parsing, redirects, shell/tab state, returned results, or navigation UI changed. 4. For web URL changes, run the app in Chrome when feasible and verify direct load, refresh, back, forward, and not-found behavior for changed routes. 5. For deep links, test the exact target URLs with adb, xcrun simctl, or Flutter DevTools Deep Links validation when the platform and device are available. 6. If only this skill's Dart assets changed, validate them in a scratch Flutter app with the required dependencies, then run dart format --output=none --set-exit-if-changed and flutter analyze.

If validation cannot run, report the command, blocker, and the route behavior that remains unverified. Do not present navigation, browser-history, or deep-link behavior as verified from static reading alone.

Fallback

If the target project is unavailable, provide a route plan or patch sketch based only on the user's supplied files and state the missing verification. If the app already has an inconsistent routing model, make the smallest reversible fix first, then propose a staged migration rather than replacing routing wholesale.

Related skills

How it compares

Pick flutter-navigation over generic mobile skills when the task is specifically Flutter route architecture, not general widget or state work.

FAQ

What Flutter routing APIs does flutter-navigation cover?

flutter-navigation covers Navigator, MaterialPageRoute, Flutter Router API, go_router, ShellRoute, StatefulShellRoute, nested Navigators, route guards, redirects, and platform deep-link handlers for Android and iOS.

When should developers use the flutter-navigation skill?

Developers should invoke flutter-navigation when implementing, refactoring, reviewing, migrating, or validating Flutter routing, including deep links, web URL strategy, 404 pages, and navigation-state test failures.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.