Flutter Setup Declarative Routing
Configure `MaterialApp.router` using a package like `go_router` for advanced URL-based navigation. Use when developing web applications or mobile apps that require specific deep linking and browser history support.
- Type
- Skill
- Author
- flutter
- Category
- Frontend
- GitHub stars
- 3.1K
- Installs
- 37.9K
- Last updated
- November 1, 2026
Install
npx skills add https://github.com/flutter/agent-plugins --skill flutter-setup-declarative-routingUse cases
- Set up MaterialApp.router with go_router for a new Flutter web app.
- Add deep linking so URLs open specific screens in a Flutter mobile app.
- Enable browser history support for back and forward navigation in Flutter web.
Frequently Asked Questions
Which router package does this skill use?
It configures MaterialApp.router using a package like go_router.
When should I use declarative routing instead of the default navigator?
When the app needs URL-based navigation, deep linking, or browser history support, typically for web or mobile apps with non-trivial navigation.
Does it apply to mobile apps as well as web?
Yes, it targets Flutter web and mobile apps that need deep linking and browser history support.
About this skill
Configures MaterialApp.router using a package like go_router for URL-based navigation in Flutter. Use when building web or mobile apps that need deep linking and browser history support. Fits into Flutter project setup for apps with non-trivial navigation.
Summary written with AI assistance from the project's public description.
More from flutter
Flutter Apply Architecture Best Practices
Architects a Flutter application using the recommended layered approach (UI, Logic, Data). Use when structuring a new project or refactoring for sc...
by flutter
Flutter Build Responsive Layout
Use `LayoutBuilder`, `MediaQuery`, or `Expanded/Flexible` to create a layout that adapts to different screen sizes. Use when you need the UI to loo...
by flutter
Flutter Fix Layout Issues
Fixes Flutter layout errors (overflows, unbounded constraints) using Dart and Flutter MCP tools. Use when addressing "RenderFlex overflowed", "Vert...
by flutter
Flutter Add Widget Test
Implement a component-level test using `WidgetTester` to verify UI rendering and user interactions (tapping, scrolling, entering text). Use when va...
by flutter
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh