flutter-widget-local-state-heuristics

Official

Control local widget state with safe boundaries.

Authorbelluga
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Flutter widget development often suffers from unclear boundaries between ephemeral UI state (local to a widget) and persistent state that should be owned by a module controller. This Skill provides a clear heuristics to enforce clean separation, reducing bugs caused by accidental state leakage and improving testability.

Core Features & Use Cases

  • Ephemeral UI state guidance: allow setState only for UI-only toggles and transient visuals.
  • ModuleScope/state ownership: require a controller to own non-UI state and to coordinate between widgets.
  • Enforcement strategies: recommends using a Controller + StreamValue; avoid putting module-scoped state inside presentation widgets.

Quick Start

Wrap module-scoped state in a controller and use setState only for ephemeral UI state.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: flutter-widget-local-state-heuristics
Download link: https://github.com/belluga/delphi-ai/archive/main.zip#flutter-widget-local-state-heuristics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.