clean_architecture package allows to initialize clean architecture in your project.
$ pub global activate clean_generator
Type in terminal:
clean_generator param project_path
* - required
generate* - allows you to generate clean architecture in your project.
module* - allows you to create a module in your project.
name* - is the name of the module
project_path* - is the path of your project.
Initialize the clean architecture in in the project path /Users/user/Desktop/project_example
flutter pub global run clean_generator generate /Users/user/Desktop/project_example
Create module in the project path /Users/user/Desktop/project_example
flutter pub global run clean_generator module employee /Users/user/Desktop/project_example
lib └───data │ └─── data_sources │ └─── environments │ └─── repositories │───domain │ └─── repositories │ └───shared └─── utils └─── widgets
Core module is generated under the class Core instantiable with method initialize(). See more in https://github.com/PalaTeam/flutter_core.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.