Feature Brick
A brick to create a feature using best practices and your state management of choice! Supports Bloc, Cubit, Provider, Riverpod, None.
How to use š
mason make feature_brick --feature_name login --state_management bloc
Variables āØ
Variable | Description | Default | Type | Conditional | When |
---|---|---|---|---|---|
feature_name | The name of the feature | login | string | false | N/A |
state_management | The state management of the app | bloc | enum | false | N/A |
use_equatable | Use the equatable package | true | boolean | true | Using bloc/cubit |
Outputs š¦
--feature_name login --state_management bloc
āāā login
ā āāā bloc
ā ā āāā bloc.dart
ā ā āāā login_bloc.dart
ā ā āāā login_event.dart
ā ā āāā login_state.dart
ā āāā view
ā ā āāā login_page.dart
ā āāā widgets
ā ā āāā login_body.dart
ā ā āāā widgets.dart
ā āāā login.dart
āāā ...
--feature_name login --state_management cubit
āāā login
ā āāā cubit
ā ā āāā cubit.dart
ā ā āāā login_cubit.dart
ā ā āāā login_state.dart
ā āāā view
ā ā āāā login_page.dart
ā āāā widgets
ā ā āāā login_body.dart
ā ā āāā widgets.dart
ā āāā login.dart
āāā ...
--feature_name login --state_management provider
āāā login
ā āāā provider
ā ā āāā login_provider.dart
ā ā āāā provider.dart
ā āāā view
ā ā āāā login_page.dart
ā āāā widgets
ā ā āāā login_body.dart
ā ā āāā widgets.dart
ā āāā login.dart
āāā ...
--feature_name login --state_management riverpod
āāā login
ā āāā provider
ā ā āāā login_provider.dart
ā ā āāā provider.dart
ā āāā view
ā ā āāā login_page.dart
ā āāā widgets
ā ā āāā login_body.dart
ā ā āāā widgets.dart
ā āāā login.dart
āāā ...
--feature_name login --state_management none
āāā login
ā āāā view
ā ā āāā login_page.dart
ā āāā widgets
ā ā āāā login_body.dart
ā ā āāā widgets.dart
ā āāā login.dart
āāā ...