V-module brick
Mason Brick to create a template for feature/module in our MVVM flutter architecture.
Setup Brick π
- Install mason_cli:
dart pub global activate mason_cli
- Activate view bricks
- From brickhub
mason add v_module
- Using
mason add
command
mason add v_module --git-url "https://github.com/GameOnAnil/vanilla-stacked-bricks.git" --git-path "bricks/v_module"
- Add directly to
mason.yaml
bricks:
view:
git:
url: 'https://github.com/GameOnAnil/vanilla-stacked-bricks.git'
path: 'bricks/v_module'
How to use π
Command Line
mason make v_module
The you will get prompt
module_name?
Then add your properties! (Optional)
Variables for the Command Line β¨
Variable | Description | Type |
---|---|---|
module_name | The name of feature / module this integration test belongs to | String |
Generate File Structure
π¦lib
β πui
β β πlogin
β β β£ πmodels
β β β β πhello.md
β β β£ πrepository
β β β β πlogin_repository.dart
β β β£ πservices
β β β β πlogin_service.dart
β β β πviews
β β β β πhello.md