Skillshub flutter-navigation
Flutter navigation patterns including go_router, deep linking, and named routes. Use when implementing navigation, deep linking, or named routes in Flutter. (triggers: **/*_route.dart, **/*_router.dart, **/main.dart, Navigator, GoRouter, routes, deep link, go_router, AutoRoute)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/flutter-navigation" ~/.claude/skills/comeonoliver-skillshub-flutter-navigation && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/flutter-navigation/SKILL.mdsource content
Flutter Navigation
Priority: P1 (OPERATIONAL)
Navigation and routing for Flutter apps using
go_router or named routes.
Guidelines
- Package: Use
for modern, declarative routing.go_router - Deep Linking: Configure
andAndroidManifest.xml
for URL schemes.Info.plist - Validation: Validate parameters in
logic before navigation.redirect - Stateful Tabs: Use
to preserve state in bottom navigation.IndexedStack
Anti-Patterns
- No Manual URL Parsing: Use
parsing, nevergo_router
manually.Uri.parse - No Stateless Tabs:
body switching loses state; useScaffold
.IndexedStack - No Unvalidated Deep Links: Always check if IDs exist in
.redirect - No Hardcoded Routes: Use constants (e.g.,
) or code generation.Routes.home
Related Topics
flutter-design-system | flutter-notifications | mobile-ux-core