skills/modelscope.cn/Flutter GetX Navigation

Flutter GetX Navigation

SKILL.md

GetX Navigation

Priority: P0 (CRITICAL)

Decoupled navigation system allowing UI transitions without BuildContext.

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

Installs
1
First Seen
Apr 20, 2026