Agent-skills-standard flutter-getx-navigation

Context-less navigation, named routes, and middleware using GetX. Use when implementing navigation or route middleware with GetX in Flutter. (triggers: **/app_pages.dart, **/app_routes.dart, GetPage, Get.to, Get.off, Get.offAll, Get.toNamed, GetMiddleware)

install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/flutter/flutter-getx-navigation" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-flutter-getx-navigation && rm -rf "$T"
manifest: skills/flutter/flutter-getx-navigation/SKILL.md
source content

GetX Navigation

Priority: P0 (CRITICAL)

Guidelines

  • Named Routes: Use
    Get.toNamed('/path')
    . Define routes in
    AppPages
    .
  • Navigation APIs:
  • Get.to()
    : Push new route.
  • Get.off()
    : Replace current route.
  • Get.offAll()
    : Clear stack and push.
  • Get.back()
    : Pop route/dialog/bottomSheet.
  • Bindings: Link routes with
    Bindings
    for automated lifecycle.
  • Middleware: Implement
    GetMiddleware
    for Auth/Permission guards.

Code Example

See AppPages Config for route definition and controller usage patterns.

Anti-Patterns

  • Navigator Context: not use
    Navigator.of(context)
    with GetX.
  • Hardcoded Routes: Use
    Routes
    constant class.
  • Direct Dialogs: Use
    Get.dialog()
    and
    Get.snackbar()
    .

References

Related Topics

getx-state-management | feature-based-clean-architecture