clean_architecture_plugin
clean_architecture_plugin copied to clipboard
A plugin for IntelliJ and Android Studio to generate the Clean-Architecture folder structure for a Flutter project.
Clean-Architecture Plugin
Generate the Clean-Architecture directory structure from Robert C. Martin (Uncle Bob) in your flutter projects. It is inspired by @ResoCoder Clean Architecture for Flutter Course.
How To Install
- Android Studio / IntelliJ IDEA -> Plugins -> Browse repositories
- Search: Clean Architecture for Flutter
- Install
- Restart IDE
How To Use
- Right click on or anywhere in your destination folder
- New -> Clean Generator -> Flutter
- Enter [feature_name] in the dialog or let it be empty to create structure in current directory
- Optional: Use the checkbox to split the data_sources folder into local and remote
| Right-click | Enter [feature_name] | generated |
|---|---|---|
![]() |
![]() |
![]() |
What will be created
- [feature_name]
- data
- [Two variants]
- [Checkbox checked]
- local
- data_sources
- models
- remote
- data_sources
- models
- local
- [Checkbox unchecked]
- data_sources
- models
- [Checkbox checked]
- repositories
- [Two variants]
- domain
- entities
- use_cases
- repositories
- presentation
- manager
- pages
- widgets
- data
Source
- https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html
- https://resocoder.com/2019/08/27/flutter-tdd-clean-architecture-course-1-explanation-project-structure/


