Mason reusable bricks.
name | description |
---|---|
dart_package |
Create a new Dart package with linter rules and basic structure |
feature_page_bloc |
Create a new feature using BLoC and Page |
feature_route_bloc |
Create a new feature using BLoC and Route |
flutter_package |
Create a new Flutter package with linter rules and basic structure |
model_json |
Create a basic model class using json serializable |
rest_frog |
Create REST endpoints for a given route in your Dart Frog project |
ui_package |
Create a new UI package in Flutter containing the design system of your app |
somnio_starter |
Create a new Flutter project |
To add a brick, use any of the following commands:
# add from git url
mason add <BRICK_NAME> --git-url https://github.com/gianfrancopapa/bricks --git-path path/to/<BRICK_NAME>
# add from git url (global)
mason add -g <BRICK_NAME> --git-url https://github.com/gianfrancopapa/bricks --git-path path/to/<BRICK_NAME>
# example to add flutter_package brick
mason add -g flutter_package --git-url https://github.com/gianfrancopapa/bricks --git-path flutter_package/
Note: Be sure to replace <BRICK_NAME>
with one of the bricks mentioned
mason add dart_package --git-url https://github.com/gianfrancopapa/bricks --git-path dart_package