flutter-auto-route-navigation
/flutter-auto-route-navigation
Wdraża typowane trasy, trasy zagnieżdżone i strażników uwierzytelniania z auto_route we Flutterze, gdy zadanie wprost używa auto_route lub jego wygenerowanego routera.
- Autor
- HoangNguyen0403 ↗
- Repozytorium
- agent-skills-standard ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 5
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wdraża typowane trasy, trasy zagnieżdżone i strażników uwierzytelniania z auto_route we Flutterze, gdy zadanie wprost używa auto_route lub jego wygenerowanego routera.
Oryginalny opis (EN)
Implement typed routing, nested routes, and auth guards using auto_route in Flutter. Use when the task explicitly uses auto_route or its generated router; defer generic deep-link setup and other routing libraries.
Jak działa
- Priority: P1 (HIGH)
- Structure
- Implementation Workflow
- Reference & Examples
- Anti-Patterns
- References
- Canonical response anchors
Podgląd SKILL.md
---
name: flutter-auto-route-navigation
description: Implement typed routing, nested routes, and auth guards using auto_route in Flutter. Use when the task explicitly uses auto_route or its generated router; defer generic deep-link setup and other routing libraries.
metadata:
triggers:
files:
- '**/router.dart'
- '**/app_router.dart'
keywords:
- AutoRoute
- AutoRouter
- router
- guards
- navigate
- push
---
# AutoRoute Navigation
## **Priority: P1 (HIGH)**
## Structure
```text
core/router/
├── app_router.dart # Router configuration
└── app_router.gr.dart # Generated routes
```
## Implementation Workflow
1. **Annotate pages** — Mark all screen/page widgets with `@RoutePage()`.
2. **Configure router** — Extend `_$AppRouter` and annotate with `@AutoRouterConfig`.
3. **Navigate with types** — Use generated route classes (e.g., `HomeRoute()`). Never use strings.
4. **Add guards** — Implement `AutoRouteGuard` for authentication/authorization logic.
5. **Handle parameters** — Constructors of `@RoutePage` widgets automatically become route parameters.
6. **Prefer declarative calls** — Use `context.pushRoute()` or `context.replaceRoute()`.
### Nested Routes & Tabs
Use `children` in `AutoRoute` for tabs. Pass `children` parameter to define initial active sub-route.
See [implementation examples](references/implementation.md) for nested route navigation and router configuration patterns.
## Reference & Examples
For full Router configuration and Auth Guard implementation:
See [references/REFERENCE.md](references/REFERENCE.md).
## Anti-Patterns
- **No string-based navigation**: Use generated typed route classes (e.g., `OrderDetailRoute(id: 123)`).
- **No protected screen without AutoRouteGuard**: Every protected route must declare guard; don't rely on UI-level checks.
- **No navigation calls from BLoC**: Emit state and let Presentation layer navigate.
## References
- [go-router-navigation](../flutter-navigation/SKILL.md) | [layer-based-clean-architecture](../flutter-layer-based-clean-architecture/SKILL.md)
## Canonical response anchors
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
- Use generated
- Additional task-grounded exact anchors: generated typed
Pliki w paczce (5)
- SKILL.md 2 KB
- evals/evals.json 2 KB
- references/REFERENCE.md 1 KB
- references/implementation.md 1 KB
- references/router-config.md 1 KB
Wersje
W bazie nie ma innych skilli o nazwie flutter-auto-route-navigation.
Migawka bazy z 13.11.2026 · wersja paczki 74b3f8e6aca1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100flutter-go-router-navigation
Wdraża typowane trasy, przekierowania i strażników z go_router we Flutterze, przy zmianach nawigacji opartej na go_router. - 90flutter-core:flutter-navigation-routing
Projektuje nawigację i routing we Flutterze: deklaratywne trasy, GoRouter, linki głębokie, strażników tras i złożone przepływy. - 100flutter-navigation
Wdraża konfigurację tras, go_router, deep linking i trasy nazwane we Flutterze: deklaracje ttras, strażnicy tras i mapowanie adresów URL na ekrany. - 85vue-router
Pomaga w routingu aplikacji Vue: zagnieżdżone trasy, strażników przejść i nawigację programową. - 90flutter-navigation
Implementuje, przegląda i weryfikuje nawigację we Flutterze: trasy, cele deep linków, zachowanie stosu wstecz, nawigację zagnieżdżoną, przywracanie, przekierowania i synchronizację adresów URL. - 100vue-routing
Konfiguruje Vue Router v4: trasy zagnieżdżone, parametry, strażników nawigacji, leniwe ładowanie i programową nawigację.