Skip to content

Poorgramer-Zack/dart-expert-skills / skills/archived/flutter-state-management

flutter-state-management

Verified

State management architecture for Flutter using Riverpod, Provider, and BLoC patterns. Use when choosing a state solution, implementing reactive state, resolving rebuild issues, or structuring MVVM/BLoC architecture.

State Management Architecture Guide

Goal

Master the implementation of declarative reactivity inside Flutter applications. Replaces archaic mutable StatefulWidgets with highly testable, globally available, decoupled state management ecosystems (MVVM or BLoC patterns). Accurately determine the exact state architectural deploy depending directly on application complexity.

Process

🚀 High-Level Workflow

Navigating State Management requires understanding explicit UI requirements and data flow directions natively.

Phase 1: Determining State Scale

Phase 2: Deploying Framework Implementation

Choose the designated framework strictly corresponding to the project's legacy constraints or architectural requirements:

  • Provider Best Practices (v6.x) - The legacy standard. Essential for maintaining existing massive environments relying natively atop InheritedWidget arrays utilizing strict context.read/Consumer MVVM separation.
  • Riverpod Best Practices (v3.x) - Provider's spiritual successor. Employs compile-time safe, context-less global ProviderContainer arrays obliterating scoping errors definitively.
  • BLoC Best Practices (v9.x) - The enterprise standard. Strictly enforces unidirectional event-driven data flows mapping explicit Events to distinct States (amplified dramatically via Freezed Union Types).

📚 Documentation Library

Consume these highly specialized architectural reference resources sequentially determining data flow structures profoundly:

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall