flutter-bloc-feature-pattern

Community

Scaffold clean, scalable Bloc features fast

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.dart structure so repositories are called only from the Bloc.
  • Exhaustive sealed states with Freezed: Encourages freezed sealed unions (e.g., Initial, Loading, Loaded, Failure) to make UI switch rendering compile-time exhaustive.
  • Correct bloc_concurrency transformer choices: Helps decide between droppable(), restartable(), sequential(), and concurrent() based on the semantics of each event handler.
  • Precision UI wiring: Uses BlocBuilder for rebuilds, BlocSelector for fine-grained updates, and BlocListener for side effects like navigation and snackbars.
  • Optional persistence guidance: Explains when to use HydratedBloc and how to implement JSON serialization and stable storagePrefix safely.

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 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-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.
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.