Bloc
stackchain: state_management: blocGenerated structure (feature_first / clean)
Section titled “Generated structure (feature_first / clean)”presentation/bloc/ <feature>_event.dart <feature>_state.dart <feature>_bloc.dartAdvantages
Section titled “Advantages”- Explicit events and states — excellent for complex flows
- First-class testing with
bloc_test - Default production preset:
production_bloc
How stackchain wires it
Section titled “How stackchain wires it”- Adds
flutter_bloc/blocto pubspec - Generates event/state/bloc trio per feature
- Pages consume the bloc via Flutter Bloc patterns in templates
- DI registers feature dependencies in managed regions