What problem does it solve?
It removes the friction of setting up a consistent Bloc-based Flutter foundation by handling dependency wiring, app-level providers, persistence initialization, and the expected project structure upfront.
Core Features & Use Cases
- Opinionated Bloc Stack Bootstrapping: Installs a pinned runtime dependency set for flutter_bloc, freezed, bloc_concurrency, and hydrated_bloc plus required generators for deterministic builds.
- HydratedBloc Persistence That Won’t Crash: Initializes HydratedBloc.storage before runApp using the correct path_provider directory choice for durable persistence.
- App-Wide State Management Infrastructure: Adds a root MultiRepositoryProvider for data-layer repositories and gates an AppBlocObserver on kDebugMode for transition/error logging during development.
- Feature-Ready Project Layout: Establishes a clear lib/ folder structure with per-feature bloc/view organization and matching test paths to support downstream skills like flutter-bloc-feature-pattern and flutter-bloc-async-api.
Quick Start
Use flutter-bloc-setup to initialize your Flutter project so Bloc, Freezed, concurrency transformers, and HydratedBloc are correctly wired before writing any feature code.