feature route bloc
A mason brick to create a new feature using BLoC and Route.
Prerequisites
Installed version of equatable and flutter_bloc >= 8.0.0
Usage š
mason make feature_route_bloc --feature_name login --package_name app
Note: for better usage the output directory should be inside the lib folder.
Variables āØ
variable | description | default | type |
---|---|---|---|
feature_name | name of the feature | login | string |
package_name | name of the package | app | string |
add_dependencies | add flutter_bloc & equatable | app | boolean |
Output š¦
āāā login
ā āāā bloc
ā ā āāā login_bloc.dart
ā ā āāā login_event.dart
ā ā āāā login_state.dart
ā āāā view
ā ā āāā login_route.dart
ā ā āāā login_view.dart
ā āāā login.dart
āāā ...