1---2name: li-lance-android-seraphim-framework-flutter-getx-state-manag3description: GetX State Management4---56# GetX State Management78## **Priority: P0 (CRITICAL)**910## Structure1112```text13lib/app/modules/home/14├── controllers/15│ └── home_controller.dart16├── bindings/17│ └── home_binding.dart18└── views/19 └── home_view.dart20```2122## Implementation Guidelines2324- **Controllers**: Extend `GetxController`. Store logic and state variables here.25- **Reactivity**:26 - Use `.obs` for observable variables (e.g., `final count = 0.obs;`).27 - Wrap UI in `Obx(() => ...)` to listen for changes.28 - For simple state, use `update()` in controller and `GetBuilder` in UI.29- **Dependency Injection**:30 - **Bindings**: Use `Bindings` class to decouple DI from UI.31 - **Lazy Load**: Prefer `Get.lazyPut(() => Controller())` in Bindings.32 - **Lifecycle**: Let GetX handle disposal. Avoid `permanent: true`.33- **Hooks**: Use `onInit()`, `onReady()`, `onClose()` instead of `initState`/`dispose`.34- **Architecture**: Use `get_cli` for modular MVVM (data, models, modules).3536## Anti-Patterns3738- **Ctx in Logic**: Pass no `BuildContext` to controllers.39- **Inline DI**: Avoid `Get.put()` in widgets; use Bindings + `Get.find`.40- **Fat Views**: Keep views pure UI; delegate all logic to controller.4142## Code Example4344See [references/controller-example.md](references/controller-example.md) for controller + view45implementation pattern.4647## Related Topics4849getx-navigation | layer-based-clean-architecture | dependency-injection5051---52> Source: [li-lance/android-seraphim-framework](https://github.com/li-lance/android-seraphim-framework) — distributed by [TomeVault](https://tomevault.io).53<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/li-lance-android-seraphim-framework-flutter-getx-state-manag in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
GetX State Management It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.