This repository contains two Mason bricks for Flutter projects:
mason_tddcreates a Flutter app scaffold with Clean Architecture layers, navigation, dependency injection, and shared services.mason_tdd_foldercreates a feature module for use with the scaffold.
- Flutter SDK
- Dart SDK
- Mason CLI
Install Mason if needed:
dart pub global activate mason_cliFrom BrickHub:
mason add --global mason_tdd
mason add --global mason_tdd_folderOr, from a clone of this repository:
mason add --global mason_tdd --path ./mason_tdd
mason add --global mason_tdd_folder --path ./mason_tdd_folderRun the app brick in the directory of an existing Flutter project:
mason make mason_tddThen, from that project, generate a feature:
mason make mason_tdd_folder --name userProfile --dio getThe 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.
This project is licensed under the MIT License. See LICENSE.