formigas Feature Brick
A brick that provides the files and structure for a feature how we implement it at formigas in our Flutter projects. It follows the principles of the MVC-pattern.
Pre-requisites š ļø
Usage šļø
- Navigate to the project you want to add the feature to and run:
mason init
- Add the
formigas_feature
to mason by running:
mason add formigas_feature
The formigas_feature brick should show up in the list of mason bricks:
$ mason list
/Users/User/foo/bar
āāā formigas_feature {VERSION} -> registry.brickhub.dev
- Generate the feature in your project:
mason make formigas_feature
Output š¦
āāā features
ā āāā counter
ā ā āāā cubit
ā ā ā āāā counter_cubit.dart
ā ā ā āāā counter_state.dart
ā ā ā āāā counter_state.freezed.dart
ā ā āāā counter_view.dart
Dependencies
Following dependencies will be installed for this brick if they are not yet present: