Personal Mason templates for Flutter.
- Folder Structure : Layer-first.
Template | Description |
---|---|
flutter_mvvm_provider | MVVM template using provider. |
flutter_mvvm_bloc | MVVM template using flutter_bloc. |
flutter_mvvm_riverpod | MVVM template using riverpod. |
flutter_empty | Empty Flutter project that includes only embedded Mustache syntax placeholders for Mason prompts across each platform. You can use this to start making your own template. |
- Clone this repository
git clone https://github.com/jhj0517/flutter_mason_templates.git
- Install Mason CLI ( If it's not installed )
dart pub global activate mason_cli
- Add the bricks as global
mason add -g flutter_mvvm_provider --path ./flutter_mvvm_provider mason add -g flutter_mvvm_bloc --path ./flutter_mvvm_bloc mason add -g flutter_mvvm_riverpod --path ./flutter_mvvm_riverpod mason add -g flutter_empty --path ./flutter_empty
- Check that the brick is added correctly.
mason ls -g ├── flutter_mvvm_provider 0.1.0 ├── flutter_mvvm_bloc 0.1.0 ├── flutter_mvvm_riverpod 0.1.0 ├── flutter_empty 0.1.0
- Start a new project with template anywhere
mason make flutter_mvvm_provider