Skip to content

jhj0517/flutter-mason-templates

Repository files navigation

Flutter Mason Templates

Personal Mason templates for Flutter.

Architecture

Flowcharts - Page 1

Templates

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.

How to use

  1. Clone this repository
    git clone https://github.com/jhj0517/flutter_mason_templates.git
    
  2. Install Mason CLI ( If it's not installed )
    dart pub global activate mason_cli
    
  3. 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
    
  4. 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  
    
  5. Start a new project with template anywhere
    mason make flutter_mvvm_provider
    

About

Personal mason templates for Flutter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published