Back to Bloc

README

bricks/flutter_bloc_feature/README.md

latest2.2 KB
Original Source
<p align="center"> </p> <p align="center"> <a href="https://github.com/felangel/bloc/actions"></a> <a href="https://codecov.io/gh/felangel/bloc"></a> <a href="https://github.com/felangel/bloc"></a> <a href="https://opensource.org/licenses/MIT"></a> <a href="https://discord.gg/bloc"></a> <a href="https://github.com/felangel/bloc"></a> <a href="https://github.com/felangel/mason"></a> </p>

Generate a new Flutter feature with bloc. Built for the bloc state management library.

Usage šŸš€

sh
mason make flutter_bloc_feature --name counter --type bloc --style basic

Variables ✨

VariableDescriptionDefaultType
nameThe name of the featurecounterstring
typeThe type of the blocblocenum
styleThe style of bloc generatedbasic (basic, equatable, freezed)enum

Output šŸ“¦

sh
── counter
│   ā”œā”€ā”€ bloc
│   │   ā”œā”€ā”€ counter_bloc.dart
│   │   ā”œā”€ā”€ counter_event.dart
│   │   └── counter_state.dart
│   ā”œā”€ā”€ counter.dart
│   └── view
│       ā”œā”€ā”€ counter_page.dart
│       └── view.dart