Flutter Navigation logo

Flutter Navigation

Community
MADTeacher
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.

Overview

PublisherMADTeacher
Repositorymad-agents-skills
Skill nameflutter-navigation
Stars
109
Forks
20
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by MADTeacher on GitHub. Read the source before you install it.

Installation

Install the Flutter Navigation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MADTeacher/mad-agents-skills.git /tmp/mad-agents-skills
mkdir -p .claude/skills
cp -r /tmp/mad-agents-skills/flutter-navigation .claude/skills/flutter-navigation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Flutter Navigation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Flutter Navigation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Flutter Navigation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Flutter Navigation AI 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.

Why use Flutter Navigation on TypingMind?

Because you install it once and use it with any model. Flutter Navigation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Flutter Navigation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MADTeacher/mad-agents-skills/tree/main/flutter-navigation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Flutter Navigation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Flutter Navigation?

As many as you like. As long as a model supports skills, you can use Flutter Navigation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Flutter Navigation AI skill free?

Yes. It is published on GitHub by MADTeacher under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇