What problem does it solve?
This Skill helps you design, implement, and test predictable Flutter state management with bloc and flutter_bloc instead of mixing business logic into widgets.
Core Features & Use Cases
- Cubit vs Bloc decisions: Choose the simplest pattern for the job, from lightweight state updates to event-driven workflows.
- State modeling: Structure state with sealed classes or a single immutable state class and status enum.
- Widget integration: Wire BlocProvider, BlocBuilder, BlocListener, BlocConsumer, and related widgets into the UI tree.
- Testing and refactoring: Write bloc_test coverage, mock repositories, and modernize existing state logic with clearer conventions.
- Use case: Build a login, checkout, or seat-selection flow that reacts to loading, success, and failure states without duplicating logic.
Quick Start
Use the bloc skill to design a new Flutter feature with a Cubit or Bloc, connect it to the widget tree, and add tests for its state transitions.