flutter-bloc-feature-pattern
CommunityScaffold clean, scalable Bloc features fast
Software Engineering#state management#flutter#freezed#bloc#hydrated_bloc#feature scaffolding#bloc_concurrency
AuthorabdallhMoukdad
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Building a new Bloc feature often turns into inconsistent file layouts, incomplete state handling, and subtle concurrency bugs that only show up under real user interaction.
Core Features & Use Cases
- Canonical event/state/bloc trio: Generates the standard
<feature>_event.dart,<feature>_state.dart, and<feature>_bloc.dartstructure so repositories are called only from the Bloc. - Exhaustive sealed states with Freezed: Encourages
freezedsealed unions (e.g.,Initial,Loading,Loaded,Failure) to make UIswitchrendering compile-time exhaustive. - Correct
bloc_concurrencytransformer choices: Helps decide betweendroppable(),restartable(),sequential(), andconcurrent()based on the semantics of each event handler. - Precision UI wiring: Uses
BlocBuilderfor rebuilds,BlocSelectorfor fine-grained updates, andBlocListenerfor side effects like navigation and snackbars. - Optional persistence guidance: Explains when to use
HydratedBlocand how to implement JSON serialization and stablestoragePrefixsafely.
Quick Start
Ask the skill to scaffold a new feature called “cart”, including the event/state/bloc trio with freezed sealed states and the correct bloc_concurrency transformers for each handler.
Dependency Matrix
Required Modules
None requiredComponents
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-bloc-feature-pattern Download link: https://github.com/abdallhMoukdad/flutter-bloc-skills/archive/main.zip#flutter-bloc-feature-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.