Typed routing, nested routes, and guards using auto_route.
Type-safe routing system with code generation using auto_route.
core/router/
├── app_router.dart # Router configuration
└── app_router.gr.dart # Generated routes
@RoutePage: Annotate all screen/page widgets with @RoutePage().
Router Config: Extend _$AppRouter and annotate with @AutoRouterConfig.
Typed Navigation: Use generated route classes (e.g., HomeRoute()). Never use strings.
Nested Routes & Tabs: Use children in AutoRoute for tabs. When navigating to a route with nested tabs, use the children parameter to define the initial active sub-route (e.g., context.navigateTo(OrdersTabRoute(children: [ViewByOrdersPageRoute()]))).
Guards: Implement AutoRouteGuard for authentication/authorization logic.
Parameters: Constructors of @RoutePage widgets automatically become route parameters.
Declarative: Prefer context.pushRoute() or context.replaceRoute().
For full Router configuration and Auth Guard implementation: See references/REFERENCE.md.
go-router-navigation | layer-based-clean-architecture
npx skills add ngxtm/Flutter AutoRoute Navigation下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer