This project is one cli for integrate Flutter and Dart with Clean Architecture
With this cli you can generate the structure of the folders based on the structure of the Clean Architecture and files like models, usecases and entites for automatize the time of the development.
First thing that you need to do is activate the clean-dart-cli, for this run the command bellow in your terminal
$ pub global activate clean_dart_cli
$ clean-dart
With clean-dart-cli you can generate all folders of the one specific layer
how to generate domain layer
$ clean-dart gen layer domain /example
how to generate infra layer
$ clean-dart gen layer infra /example
how to generate external layer
$ clean-dart gen layer external /example
how to generate ui layer
$ clean-dart gen layer ui /example
how to generate complete layers
$ clean-dart gen layer complete /example
how to generate usecases
$ clean-dart gen usecase /example/domain/usecases RegisterUser
how to generate entities
$ clean-dart gen entity /example/domain/entities User
how to generate models
$ clean-dart gen model /example/infra/models User
darthow to generate modelsJs (Model with Json Serializable)
$ clean-dart gen modelJs /user/external/models User
how to generate error
$ clean-dart gen error /user/domain/error User
how to generate presentation layer
dart ../clean-dart-cli/bin/clean_dart_cli.dart gen presentation lib/presentation lib/core/navigation/app_routes.json lib/core/navigation/app_routes.dart settings
$ clean-dart upgrade
$ clean-dart --help
You can clone this project and send a pull request with your improvements or open issues