Typed routes, route state, and redirection using go_router.
Type-safe deep linking and routing system using go_router and go_router_builder.
core/router/
├── app_router.dart # Router configuration
└── routes.dart # Typed route definitions (GoRouteData)
GoRouteData from go_router_builder. Never use raw path strings.GoRouter instance registered in DI.TypedGoRoute and children lists.redirect property of the GoRouter config.@TypedGoRoute to define paths with :id parameters.buildPage.MyRoute().go(context) or MyRoute().push(context).// Route Definition
@TypedGoRoute<HomeRoute>(path: '/')
class HomeRoute extends GoRouteData {
@override
Widget build(context, state) => const HomePage();
}
// Router Config
final router = GoRouter(
routes: $appRoutes,
redirect: (context, state) {
if (notAuthenticated) return '/login';
return null;
},
);
layer-based-clean-architecture | auto-route-navigation | security
npx skills add ngxtm/Flutter GoRouter 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