flutter-getx-state-management
БесплатноБез исполняемых скриптовНе проверенImplement reactive state with GetX controllers, bindings, and observables in Flutter. Use when managing app state with GetxController, Obx, GetBuilder, or…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
GetX State Management
Priority: P0 (CRITICAL)
Structure
lib/app/modules/home/
├── controllers/
│ └── home_controller.dart
├── bindings/
│ └── home_binding.dart
└── views/
└── home_view.dart
Implementation Guidelines
- Controllers: Extend
GetxController. Store logic and state variables here. - Reactivity:
- Use
.obsfor observable variables (e.g.,final count = 0.obs;). - Wrap UI in
Obx(() => ...)to listen for changes. - For simple state, use
update()in controller andGetBuilderin UI. - Dependency Injection:
- Bindings: Use
Bindingsclass to decouple DI from UI. - Lazy Load: Prefer
Get.lazyPut(() => Controller())in Bindings. - Lifecycle: Let GetX handle disposal. Avoid
permanent: true. - Hooks: Use
onInit(),onReady(),onClose()instead ofinitState/dispose. - Architecture: Use
get_clifor modular MVVM (data, models, modules).
Anti-Patterns
- Ctx in Logic: Pass no
BuildContextto controllers. - Inline DI: Avoid
Get.put()in widgets; use Bindings +Get.find. - Fat Views: Keep views pure UI; delegate all logic to controller.
Code Example
See references/controller-example.md for controller + view implementation pattern.
Related Topics
getx-navigation | layer-based-clean-architecture | dependency-injection
Controller boundary
- Keep
BuildContextout of controllers. Use GetX services such asGet.snackbarfor controller-owned feedback and expose reactive state to the view.
Установить flutter-getx-state-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flutter-getx-state-management?
Implement reactive state with GetX controllers, bindings, and observables in Flutter. Use when managing app state with GetxController, Obx, GetBuilder, or dependency lifecycle—not unit tests for existing controllers.
Как установить скилл flutter-getx-state-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flutter-getx-state-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic