Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildAI reviewed Jul 21, 2026

flutter-navigation

Implement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router, route guards, redirects, ShellRoute or StatefulShellRoute, nested Navigators, passing and returning route data, deep links, Android App Links, iOS Universal Links, custom URI schemes, Flutter web URL strategy, browser history, 404 routing, route tests, or navigation-state bugs.

v1.0.15 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install flutter-dart-skills-flutter-navigation
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/flutter-dart-skills-flutter-navigation/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

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.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
flutter-testingWrite, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, build_runner mock generation, device integration testing, web integration testing, or flaky Flutter tests.3 installsdart-driftBuild, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps. Use when adding SQLite with package:drift/native.dart, configuring PostgreSQL with drift_postgres and package:postgres, writing type-safe tables, queries, writes, streams, and migrations, resolving build_runner or drift_dev failures, or validating Dart database code with code generation, analysis, tests, and migration checks.2 installsflutter-driftImplement, fix, review, migrate, test, or debug Drift persistence in Flutter apps using SQLite, drift_flutter, type-safe Dart queries, generated tables, StreamBuilder or Riverpod StreamProvider UI, write operations, transactions, schema migrations, web assets, isolate sharing, and local database testing. Use when a Flutter task mentions drift, local database storage, SQLite, reactive database streams, CRUD, schemaVersion, build_runner, drift_dev make-migrations, migration tests, or Flutter-specific database setup across mobile, web, or desktop.2 installsflutter-duit-bduiIntegrate, fix, review, migrate, test, or debug Duit / flutter_duit backend-driven UI in Flutter applications. Use when a task mentions DUIT, flutter_duit, backend-driven UI, BDUI, server-driven UI, XDriver, DuitViewHost, DuitRegistry, HTTP or WebSocket transports, custom Duit widgets, components, capability delegates, compile-time DUIT flags, or rendering JSON layouts from a backend.1 installs

More from Flutter/Dart Skills

View source →
flutter-adaptive-uiBuild, fix, review, and validate adaptive or responsive Flutter UIs for mobile, tablet, desktop, web, large screens, foldables, and mixed input devices. Use when creating breakpoint-driven layouts, responsive navigation, adaptive dialogs/lists/grids, keyboard/mouse/touch behavior, window-size decisions with MediaQuery or LayoutBuilder, or Capability and Policy patterns for platform-specific behavior.10 installsflutter-architectureDesign, refactor, review, or implement Flutter app architecture using MVVM, layered UI/Data/optional Domain boundaries, feature-first or layer-first project structure, repositories, services, dependency injection, Result and Command patterns, offline-first or optimistic UI flows. Use when asked to add a Flutter feature, audit layer dependencies, fix cross-feature imports, migrate to feature-first, choose architecture for a Flutter project, or create scalable maintainable Flutter code organization.8 installsflutter-animationsAdd, fix, refactor, debug, test, or explain Flutter animations and motion effects. Use when working with implicit animations such as AnimatedContainer, AnimatedOpacity, AnimatedSwitcher, and TweenAnimationBuilder; explicit animations using AnimationController, Tween, CurvedAnimation, AnimatedWidget, AnimatedBuilder, and built-in transitions; Hero/shared-element route transitions; staggered or sequenced animations; physics-based motion, gestures, springs, flings, scroll physics, curves, performance, accessibility, reduced motion, and animation lifecycle bugs.7 installsagents-md-generatorCreate, generate, update, repair, trim, or split minimal AGENTS.md files for repository roots and confirmed nested modules using progressive disclosure. Use for missing, bloated, contradictory, or outdated agent instructions, monorepos, services, packages, module context, and portable agent guidance without assuming any fixed agent folder structure.7 installsflutter-networkingImplement, fix, debug, review, or refactor Flutter networking code for HTTP/REST APIs, WebSocket realtime flows, authentication and token refresh, request headers, timeouts, retries, JSON parsing, caching, background isolates, repositories, services, and adaptation to existing http, Dio, Retrofit, Chopper, or custom API clients. Use when asked to add network requests, investigate network errors, harden API clients, handle auth, or validate Flutter network behavior.4 installsflutter-internationalizationAdd, fix, audit, and maintain Flutter internationalization with gen-l10n, ARB files, AppLocalizations, flutter_localizations, intl formatting, plural/select messages, RTL support, locale-specific number/date formatting, and localization build errors. Use when asked to add l10n or i18n, translate Flutter UI text, configure l10n.yaml, manage ARB translations, migrate away from package:flutter_gen imports, or troubleshoot generated localization code.4 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.248 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.176 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

Frequently asked questions about flutter-navigation

What does the flutter-navigation skill do?

Implement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router, route guards, redirects, ShellRoute or StatefulShellRoute, nested Navigators, passing and returning route data, deep links, Android App Links, iOS Universal Links, custom URI schemes, Flutter web URL strategy, browser history, 404 routing, route tests, or navigation-state bugs. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the flutter-navigation skill?

Run `npx @skills-hub-ai/cli install flutter-dart-skills-flutter-navigation` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/flutter-dart-skills-flutter-navigation/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does flutter-navigation work with?

flutter-navigation runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the flutter-navigation skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use flutter-navigation after installing it?

In Claude Code, type `/flutter-dart-skills-flutter-navigation` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the flutter-navigation skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.