brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
flutter-go-router-navigationImplement typed routes, redirection, and guards using go_router in Flutter. Use when changing go_router navigation; defer widget tests that merely assert redirect behavior and defer slide/transition animation work.
Independent GitHub snapshot · Automated classification · Original documentation governs
core/router/
├── app_router.dart # Router configuration
└── routes.dart # Typed route definitions (GoRouteData)
go_router_builder. Never use raw path strings.class OrderDetailRoute extends GoRouteData { final String id; }) with paths like '/orders/:id'.GoRouter instance registered in DI.TypedGoRoute and children lists.GoRouter config: redirect: (context, state) => isLoggedIn ? null : '/login'. ** NOT check auth inside page widget.**buildPage.MyRoute().push(context). Using OrderDetailRoute(id: id).go(context) only allowed way to navigate.See references/typed-routes.md for GoRouteData + redirect implementation.
GoRouteData classes (e.g., OrderDetailRoute(id: 123).go(context)) instead of context.go('/orders/123')GoRouter.redirect, not UI's build() methodGoRouter instance in DIredirect before building routelayer-based-clean-architecture | auto-route-navigation | security
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: