some mason bricks that we use for our internal workflow
Note that we use
bdaya_flutter_commonas a base library for the generated code We also needbuild_runneras a dev dependency.
- bdaya_form
- generate a form using
reactive_forms_annotations+reactive_forms_generator
- generate a form using
- bdaya_page
- generate a simple page (view + controller)
- bdaya_route
- generate a page that reacts to route changes from
go_router
- generate a page that reacts to route changes from
- Activate mason_cli
dart pub global activate mason_cli
- Add Bricks
- bdaya_form
mason add bdaya_form --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_form - bdaya_route
mason add bdaya_route --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_route - bdaya_page
mason add bdaya_page --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_page
- bdaya_form
mason get- Make
- bdaya_form:
mason make bdaya_form -o lib/src/dialogs --name EditUserNote that
bdaya_formrequires some dependencies, which you can add using this command:dart pub add reactive_forms_annotations --dev reactive_forms_generator - bdaya_route:
mason make bdaya_route -o lib/src/pages --name UserDetails - bdaya_page:
mason make bdaya_page -o lib/src/pages --name Users
- bdaya_form: