Agent skill

Flutter Implementing Navigation And Routing

by btwld in btwld/superdeck

Handles routing, navigation, and deep linking in a Flutter application.

BSD-3-ClauseAuto-check passedMobile

Install Flutter Implementing Navigation And Routing

skills CLI
$ npx skills add btwld/superdeck --skill flutter-implementing-navigation-and-routing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install btwld/superdeck flutter-implementing-navigation-and-routing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flutter-implementing-navigation-and-routing .claude/skills/flutter-implementing-navigation-and-routing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
flutter-implementing-navigation-and-routing
GitHub stars
130
Token cost
~2.1k tokens
SKILL.md length
628 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Handles routing, navigation, and deep linking in a Flutter application.

  • Moving between screens
  • SKILL.md covers Contents, Core Concepts, Implementing Imperative… and Implementing Declarative…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Setting up URL-based navigation

What it does

Flutter Implementing Navigation And Routing is an agent skill from btwld/superdeck. Handles routing, navigation, and deep linking in a Flutter application. Use when moving between screens or setting up URL-based navigation.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Cross-platform mobile apps. It works with Flutter. The repository describes itself as: Presentation slides for Flutter with Flutter. The licence is BSD-3-Clause.

When your agent uses it

  • Moving between screens
  • Setting up URL-based navigation

Example prompts

  • “Use the flutter-implementing-navigation-and-routing skill to handle routing, navigation, and deep linking in a Flutter application”
  • “/flutter-implementing-navigation-and-routing”

What it can do on your machine

Read from SKILL.md and the folder at commit 815a746. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are dart).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Flutter Implementing Navigation And Routing loads about 2.1k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 628 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from btwld/superdeck at commit 815a746, republished under its BSD-3-Clause licence (© btwld). 628 words, ~2,091 tokens.

Download SKILL.mdSave it as .claude/skills/flutter-implementing-navigation-and-routing/SKILL.md (or your agent's skills folder).
name
flutter-implementing-navigation-and-routing
description
Handles routing, navigation, and deep linking in a Flutter application. Use when moving between screens or setting up URL-based navigation.
metadata.model
models/gemini-3.1-pro-preview
metadata.last_modified
Thu, 12 Mar 2026 22:30:17 GMT

Implementing Navigation and Routing in Flutter

Contents

Core Concepts

  • Routes: In Flutter, screens and pages are referred to as routes. A route is simply a widget. This is equivalent to an Activity in Android or a ViewController in iOS.
  • Navigator vs. Router:
    • Use Navigator (Imperative) for small applications without complex deep linking requirements. It manages a stack of Route objects.
    • Use Router (Declarative) for applications with advanced navigation, web URL synchronization, and specific deep linking requirements.
  • Deep Linking: Allows an app to open directly to a specific location based on a URL. Supported on iOS, Android, and Web. Web requires no additional setup.
  • Named Routes: Avoid using named routes (MaterialApp.routes and Navigator.pushNamed) for most applications. They have rigid deep linking behavior and do not support the browser forward button. Use a routing package like go_router instead.

Implementing Imperative Navigation

Use the Navigator widget to push and pop routes using platform-specific transition animations (MaterialPageRoute or CupertinoPageRoute).

Pushing and Popping
  • Navigate to a new route using Navigator.push(context, route).
  • Return to the previous route using Navigator.pop(context).
  • Use Navigator.pushReplacement() to replace the current route, or Navigator.pushAndRemoveUntil() to clear the stack based on a condition.
Passing and Returning Data
  • Sending Data: Pass data directly into the constructor of the destination widget. Alternatively, pass data via the settings: RouteSettings(arguments: data) parameter of the PageRoute and extract it using ModalRoute.of(context)!.settings.arguments.
  • Returning Data: Pass the return value to the pop method: Navigator.pop(context, resultData). Await the result on the pushing side: final result = await Navigator.push(...).

Implementing Declarative Navigation

For apps requiring deep linking, web URL support, or complex routing, implement the Router API via a declarative routing package like go_router.

  • Switch from MaterialApp to MaterialApp.router.
  • Define a router configuration that parses route paths and configures the Navigator automatically.
  • Navigate using package-specific APIs (e.g., context.go('/path')).
  • Page-backed vs. Pageless Routes: Declarative routes are page-backed (deep-linkable). Imperative pushes (e.g., dialogs, bottom sheets) are pageless. Removing a page-backed route automatically removes all subsequent pageless routes.

Implementing Nested Navigation

Implement nested navigation to manage a sub-flow of screens (e.g., a multi-step setup process or persistent bottom navigation tabs) independently from the top-level global navigator.

  • Instantiate a new Navigator widget inside the host widget.
  • Assign a GlobalKey<NavigatorState> to the nested Navigator to control it programmatically.
  • Implement the onGenerateRoute callback within the nested Navigator to resolve sub-routes.
  • Intercept hardware back button presses using PopScope to prevent the top-level navigator from popping the entire nested flow prematurely.
Show full SKILL.md (215 more words)Show less

Workflows

Workflow: Standard Screen Transition

Copy this checklist to track progress when implementing a basic screen transition:

  • Create the destination widget (Route).
  • Define required data parameters in the destination widget's constructor.
  • Implement Navigator.push() in the source widget.
  • Wrap the destination widget in a MaterialPageRoute or CupertinoPageRoute.
  • Implement Navigator.pop() in the destination widget to return.
Workflow: Implementing Deep-Linkable Routing

Use this conditional workflow when setting up app-wide routing:

  • If the app is simple and requires no deep linking:
    • Use standard MaterialApp and Navigator.push().
  • If the app requires deep linking, web support, or complex flows:
    • Add the go_router package.
    • Change MaterialApp to MaterialApp.router.
    • Define the GoRouter configuration with all top-level routes.
    • Replace Navigator.push() with context.go() or context.push().
Workflow: Creating a Nested Navigation Flow

Run this workflow when building a multi-step sub-flow (e.g., IoT device setup):

  • Define string constants for the nested route paths.
  • Create a GlobalKey<NavigatorState> in the host widget's state.
  • Return a Navigator widget in the host's build method, passing the key.
  • Implement onGenerateRoute in the nested Navigator to map string paths to specific step widgets.
  • Wrap the host Scaffold in a PopScope to handle back-button interceptions (e.g., prompting "Are you sure you want to exit setup?").
  • Use navigatorKey.currentState!.pushNamed() to advance steps within the flow.

Examples

Example: Passing Data via Constructor (Imperative)
dart
// 1. Define the data model
class Todo {
  final String title;
  final String description;
  const Todo(this.title, this.description);
}

// 2. Source Screen
class TodosScreen extends StatelessWidget {
  final List<Todo> todos;
  const TodosScreen({super.key, required this.todos});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Todos')),
      body: ListView.builder(
        itemCount: todos.length,
        itemBuilder: (context, index) {
          return ListTile(
            title: Text(todos[index].title),
            onTap: () {
              // Push and pass data via constructor
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (context) => DetailScreen(todo: todos[index]),
                ),
              );
            },
          );
        },
      ),
    );
  }
}

// 3. Destination Screen
class DetailScreen extends StatelessWidget {
  final Todo todo;
  const DetailScreen({super.key, required this.todo});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(todo.title)),
      body: Padding(
        padding: const EdgeInsets.all(16),
        child: Text(todo.description),
      ),
    );
  }
}
Example: Nested Navigation Flow
dart
class SetupFlow extends StatefulWidget {
  final String initialRoute;
  const SetupFlow({super.key, required this.initialRoute});

  @override
  State<SetupFlow> createState() => _SetupFlowState();
}

class _SetupFlowState extends State<SetupFlow> {
  final _navigatorKey = GlobalKey<NavigatorState>();

  void _exitSetup() => Navigator.of(context).pop();

  @override
  Widget build(BuildContext context) {
    return PopScope(
      canPop: false,
      onPopInvokedWithResult: (didPop, _) async {
        if (didPop) return;
        // Intercept back button to prevent accidental exit
        _exitSetup(); 
      },
      child: Scaffold(
        appBar: AppBar(title: const Text('Setup')),
        body: Navigator(
          key: _navigatorKey,
          initialRoute: widget.initialRoute,
          onGenerateRoute: _onGenerateRoute,
        ),
      ),
    );
  }

  Route<Widget> _onGenerateRoute(RouteSettings settings) {
    Widget page;
    switch (settings.name) {
      case 'step1':
        page = StepOnePage(
          onComplete: () => _navigatorKey.currentState!.pushNamed('step2'),
        );
        break;
      case 'step2':
        page = StepTwoPage(onComplete: _exitSetup);
        break;
      default:
        throw StateError('Unexpected route name: ${settings.name}!');
    }

    return MaterialPageRoute(
      builder: (context) => page,
      settings: settings,
    );
  }
}

© btwld, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/flutter-implementing-navigation-and-routing of btwld/superdeck.

Open the folder on GitHubat commit 815a746

Compare with similar skills

Flutter Implementing Navigation And Routing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Flutter Implementing Navigation And Routing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Flutter Implementing Navigation And Routing this skillbtwld/superdeck130—~2.1kAutomated safety check: PassBSD-3-Clause
Add Flutter Docusaurus Localematthiasn/lotti1.2k—~1.2kAutomated safety check: PassGPL-3.0
Tm Launcher DesignFar-Se/tabame372—~3.1kAutomated safety check: PassMIT
Mobile App UI Designceorkm/mobile-app-ui-design400—~2kAutomated safety check: PassNone
Marionette Flutter Drive Appleancodepl/marionette_mcp473—~11kAutomated safety check: PassApache-2.0
Flutter ScreenshotJustLookAtNow/pt_mate503—~511Automated safety check: PassMIT

Similar skills

  • Add, complete, or audit a locale across a Flutter application's ARB catalogs and a localized Docusaurus manual, including generated localization code, locale selectors, native platform declarations…

    1.2k GitHub stars~1.2k tokensUpdated yesterday
    MobileAuto-check passed
  • Tm Launcher Design

    Far-Se/tabame

    Create or revise Tabame's Flutter launcher designs: frames, search bars, result rows, palettes, typography, and action dialogs.

    372 GitHub stars~3.1k tokensUpdated yesterday
    MobileAuto-check passed
  • Mobile App UI Design

    ceorkm/mobile-app-ui-design

    Design high-quality mobile app UI/UX screens, flows, and components.

    400 GitHub stars~2k tokensUpdated 3 mo ago
    MobileAuto-check passed
  • Marionette Flutter Drive App

    leancodepl/marionette_mcp

    Set up and drive a running Flutter app (debug or profile) with Marionette — an AI agent's hands and eyes for the app.

    473 GitHub stars~11k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Flutter Screenshot

    JustLookAtNow/pt_mate

    Capture and show two Flutter UI screenshots for this project: one landscape/large-screen preview and one portrait/mobile preview, without using Flutter Web.

    503 GitHub stars~511 tokensUpdated 3 days ago
    MobileAuto-check passed
  • Flutter Init

    bear2u/my-skills

    A skill your agent uses when user wants to create a new Flutter project (Todo/Habit/Note/Expense/Custom domain) with Clean Architecture, Riverpod 3.0, Drift, and modern Flutter stack

    933 GitHub stars~2.5k tokensUpdated 3 mo ago
    MobileAuto-check passed

More from btwld/superdeck

All 23 skills in this repo
  • Create, review, or edit SuperDeck Markdown presentations and Flutter presentation apps.

    130 GitHub stars~649 tokensUpdated 11 days ago
    Auto-check passed
  • Adds home screen widgets to a Flutter app for Android and iOS.

    130 GitHub stars~2.2k tokensUpdated 11 days ago
    Auto-check passed
  • Flutter Animating Apps

    btwld/superdeck

    Implements animated effects, transitions, and motion in a Flutter app.

    130 GitHub stars~1.9k tokensUpdated 11 days ago
    Auto-check passed
  • Architects a Flutter application using the recommended layered approach (UI, Logic, Data).

    130 GitHub stars~1.8k tokensUpdated 11 days ago
    Auto-check passed
  • Flutter Building Forms

    btwld/superdeck

    Builds Flutter forms with validation and user input handling.

    130 GitHub stars~1.4k tokensUpdated 11 days ago
    Auto-check passed
  • Builds Flutter layouts using the constraint system and layout widgets.

    130 GitHub stars~1.5k tokensUpdated 11 days ago
    Auto-check passed

Works with

Categories

Questions about Flutter Implementing Navigation And Routing

What does Flutter Implementing Navigation And Routing do?

Handles routing, navigation, and deep linking in a Flutter application. Flutter Implementing Navigation And Routing is an agent skill from btwld/superdeck. Handles routing, navigation, and deep linking in a Flutter application.

When should I use Flutter Implementing Navigation And Routing?

Flutter Implementing Navigation And Routing fits situations like: moving between screens; setting up URL-based navigation.

How do I install Flutter Implementing Navigation And Routing in Claude Code?

Run `npx skills add btwld/superdeck --skill flutter-implementing-navigation-and-routing -a claude-code`. Or copy the skill folder (.agents/skills/flutter-implementing-navigation-and-routing in btwld/superdeck) into .claude/skills/flutter-implementing-navigation-and-routing in your project. Claude Code loads it when a task matches its description.

How do I install Flutter Implementing Navigation And Routing in Codex?

Run `npx skills add btwld/superdeck --skill flutter-implementing-navigation-and-routing -a codex`. Or copy the skill folder (.agents/skills/flutter-implementing-navigation-and-routing in btwld/superdeck) into .agents/skills/flutter-implementing-navigation-and-routing in your project. Codex loads it when a task matches its description.

Can I use Flutter Implementing Navigation And Routing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add btwld/superdeck --skill flutter-implementing-navigation-and-routing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-implementing-navigation-and-routing, .gemini/skills/flutter-implementing-navigation-and-routing, .github/skills/flutter-implementing-navigation-and-routing and .opencode/skills/flutter-implementing-navigation-and-routing in your project.

What does Flutter Implementing Navigation And Routing need to run?

SKILL.md names no scripts, command-line tools or credentials: Flutter Implementing Navigation And Routing is instructions for the agent only.

Does Flutter Implementing Navigation And Routing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Flutter Implementing Navigation And Routing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Flutter Implementing Navigation And Routing use?

Flutter Implementing Navigation And Routing is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Flutter Implementing Navigation And Routing use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Flutter Implementing Navigation And Routing?

Skills that share tags, products or a category with Flutter Implementing Navigation And Routing: Add Flutter Docusaurus Locale (matthiasn/lotti, 1.2k stars), Tm Launcher Design (Far-Se/tabame, 372 stars), Mobile App UI Design (ceorkm/mobile-app-ui-design, 400 stars) and Marionette Flutter Drive App (leancodepl/marionette_mcp, 473 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Flutter Implementing Navigation And Routing?

btwld (a GitHub organization) maintains it in btwld/superdeck, which has 130 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 28, 2026.

Source: btwld/superdeck on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.