Skip to content
munawerdevPublic

About

"Mason CLI: Simplify your Flutter development workflow with Mason CLI. This command-line tool streamlines code generation, making it easier to create consistent and maintainable Flutter projects. Boost your productivity and code quality with Mason CLI."

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

 

History

107 Commits

Folders and files

Repository files navigation

Mason Flutter Bricks

This repository contains two Mason bricks for Flutter projects:

  • mason_tdd creates a Flutter app scaffold with Clean Architecture layers, navigation, dependency injection, and shared services.
  • mason_tdd_folder creates a feature module for use with the scaffold.

Requirements

  • Flutter SDK
  • Dart SDK
  • Mason CLI

Install Mason if needed:

dart pub global activate mason_cli

Install the bricks

From BrickHub:

mason add --global mason_tdd
mason add --global mason_tdd_folder

Or, from a clone of this repository:

mason add --global mason_tdd --path ./mason_tdd
mason add --global mason_tdd_folder --path ./mason_tdd_folder

Generate

Run the app brick in the directory of an existing Flutter project:

mason make mason_tdd

Then, from that project, generate a feature:

mason make mason_tdd_folder --name userProfile --dio get

The dio option can be get, post, or none. The folder brick adds the generated feature to the scaffold's navigation and dependency injection setup when those files are present.

See each brick's README for its variables and generated files.

License

This project is licensed under the MIT License. See LICENSE.

About

"Mason CLI: Simplify your Flutter development workflow with Mason CLI. This command-line tool streamlines code generation, making it easier to create consistent and maintainable Flutter projects. Boost your productivity and code quality with Mason CLI."

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages