원클릭으로
create-route
Create routes in Modugo using ChildRoute, ModuleRoute, ShellModuleRoute, StatefulShellModuleRoute, or AliasRoute
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create routes in Modugo using ChildRoute, ModuleRoute, ShellModuleRoute, StatefulShellModuleRoute, or AliasRoute
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | create-route |
| description | Create routes in Modugo using ChildRoute, ModuleRoute, ShellModuleRoute, StatefulShellModuleRoute, or AliasRoute |
Modugo has 5 route types. Always use the declarative DSL functions instead of instantiating the classes directly.
| DSL function | Class | Use case |
|---|---|---|
child() | ChildRoute | Regular page route |
module() | ModuleRoute | Nested module |
shell() | ShellModuleRoute | Shared layout (e.g. bottom nav) |
statefulShell() | StatefulShellModuleRoute | Stateful shell with independent stacks |
alias() | AliasRoute | Redirect/alias to another route |
child(
'/home',
builder: (context, state) => const HomePage(),
guards: [AuthGuard()],
transition: TypeTransition.fadeIn,
)
module(
'/profile',
ProfileModule(),
guards: [AuthGuard()], // propagates to all routes in ProfileModule
)
shell(
'/',
builder: (context, state, child) => ScaffoldWithNavBar(child: child),
module: ShellModule(),
)
statefulShell(
'/',
builder: (context, state, shell) => NavBarPage(shell: shell),
branches: [
StatefulShellBranch(routes: [HomeModule().buildRoutes()]),
StatefulShellBranch(routes: [ProfileModule().buildRoutes()]),
],
)
alias('/old-path', redirectTo: '/new-path')
module() and shell() propagate automatically to all child routesTypeTransition to set per-route transitions; the default is set in Modugo.configure()state.pathParameters or state.uri.queryParametersModugo routes are built on GoRouter. For advanced routing patterns (redirect, deep linking, extra codec), consult GoRouter docs directly:
use context7 with /websites/pub_dev_go_router for advanced routing patterns
Create and apply route guards in Modugo to protect routes with conditional logic
Create a new Modugo module with routes, binds, and imports
Register and access dependencies in Modugo modules using GetIt via the binds() method
Contexto completo do projeto Modugo — lib Flutter de roteamento modular e injeção de dependência sobre GoRouter + GetIt. Carregue esta skill sempre que for explorar, implementar, especificar ou revisar qualquer coisa no repositório.