My repo for flutter mason bricks
- dart pub global activate mason_cli
- Add brick from this repo to local cache in global scope:
mason add -g <brick_name> --git-url https://github.com/juskek/flutter_mason.git --git-path bricks/<brick_name>
- Confirm installation:
mason ls -g
- Use it:
mason make <brick_name>
E.g., for app brick
git add .
git commit -m "update"
git push
mason remove -g app
mason add -g app --git-url https://github.com/juskek/flutter_mason.git --git-path bricks/app
mason ls -g
- Init files:
flutter create example_app
cd example_app
mason make app --on-conflict overwrite
flutter pub get
flutter pub run flutter_flavorizr
flutter run --flavor flav_dev -t lib/main_flav_dev.dart