인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

flutter-getx-navigation

flutter-getx-navigation

Implement context-less navigation, named routes, and middleware using GetX. Use when building navigation with GetX routing in Flutter.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: flutter-getx-navigation description: Implement context-less navigation, named routes, and middleware using GetX. Use when building navigation with GetX routing in Flutter. metadata: triggers: files: - '/app_pages.dart' - '/app_routes.dart' keywords: - GetPage - Get.to - Get.off - Get.offAll - Get.toNamed - GetMiddleware

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

저장한 Skills