Implement Flutter BLoC state management
flutter-bloc-state-managementskillsetup L2★503
HoangNguyen0403/agent-skills-standard ↗What it does
Implement BLoC/Cubit state management correctly in Flutter. Use when writing, modifying, reviewing, or testing any BLoC, Cubit, state, or event file.
Best for
Building testable, predictable state flows in Flutter apps with clear separation of UI and business logic
Inputs
- · Event definitions
- · State definitions
- · BLoC transformation logic
Outputs
- · Emitted states triggering UI rebuilds
Requires
- · HTTP API
- · Flutter SDK
- · flutter_bloc package
Preconditions
Flutter project with flutter_bloc and freezed dependencies
Failure modes
- · Untested state transitions
- · Logic leaking into UI
- · Race conditions without proper concurrency control
Trust signals
- · blocTest examples provided
- · Checklist of anti-patterns
- · Priority: P0 (CRITICAL)