> flutter-getx-state-management

Manage reactive state with GetX controllers and observables in Flutter. Use when managing reactive state with GetX controllers or observables in Flutter. (triggers: **_controller.dart, **/bindings/*.dart, GetxController, Obx, GetBuilder, .obs, Get.put, Get.find, Get.lazyPut)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/flutter-getx-state-management?format=md"
SKILL.mdflutter-getx-state-management

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 .obs for observable variables (e.g., final count = 0.obs;).
    • Wrap UI in Obx(() => ...) to listen for changes.
    • For simple state, use update() in controller and GetBuilder in UI.
  • Dependency Injection:
    • Bindings: Use Bindings class 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 of initState/dispose.
  • Architecture: Use get_cli for modular MVVM (data, models, modules).

Anti-Patterns

  • Ctx in Logic: Pass no BuildContext to 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

class UserController extends GetxController {
  final name = "User".obs;
  void updateName(String val) => name.value = val;
}

class UserView extends GetView<UserController> {
  @override
  Widget build(ctx) => Scaffold(
    body: Obx(() => Text(controller.name.value)),
    floatingActionButton: FloatingActionButton(
      onPressed: () => controller.updateName("New"),
    ),
  );
}

Related Topics

getx-navigation | layer-based-clean-architecture | dependency-injection

> related_skills --same-repo

> common-store-changelog

Generate user-facing release notes for the Apple App Store and Google Play Store by collecting git history, triaging user-impacting changes, and drafting store-compliant changelogs. Enforces character limits (App Store ≤4000, Google Play ≤500), tone, and bullet format. Use when generating release notes, app store changelog, play store release, what's new, or version release notes for any mobile app. (triggers: generate changelog, app store notes, play store release, what's new, release notes, ve

> golang-tooling

Go developer toolchain — gopls LSP diagnostics, linting, formatting, and vet. Use when setting up Go tooling, running linters, or integrating gopls with Claude Code. (triggers: gopls, golangci-lint, golangci.yml, go vet, goimports, staticcheck, go tooling, go lint)

> common-ui-design

Design distinctive, production-grade frontend UI with bold aesthetic choices. Use when building web components, pages, interfaces, dashboards, or applications in any framework (React, Next.js, Angular, Vue, HTML/CSS). (triggers: build a page, create a component, design a dashboard, landing page, UI for, build a layout, make it look good, improve the design, build UI, create interface, design screen)

> common-owasp

OWASP Top 10 audit checklist for Web Applications (2021) and APIs (2023). Load during any security review, PR review, or codebase audit touching web, mobile backend, or API code. (triggers: security review, OWASP, broken access control, IDOR, BOLA, injection, broken auth, API review, authorization, access control)

┌ stats

installs/wk0
░░░░░░░░░░
github stars452
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────