Flutter Clean Architecture Generator
Generate Clean Architecture boilerplate for Flutter features in seconds.
This extension helps you quickly scaffold a feature with a structured architecture, saving time and enforcing best practices.
Features
- Generate full Clean Architecture structure
- Supports Bloc and Cubit
- Automatically creates:
- Data layer
- Domain layer
- Presentation layer
- Generates ready-to-use boilerplate code
- Converts feature names from
snake_case → PascalCase
Generated Structure
Example for feature: auth
lib/features/auth/
├── data/
│ ├── datasource/
│ │ ├── auth_remote_datasource.dart
│ │ └── auth_local_datasource.dart
│ ├── models/
│ └── repository/
│ └── auth_repository_impl.dart
├── domain/
│ ├── entity/
│ ├── repository/
│ │ └── auth_repository.dart
│ └── usecase/
└── presentation/
├── pages/
│ └── auth_page.dart
├── widgets/
└── bloc/ or cubit/
├── auth_bloc.dart / auth_cubit.dart
├── auth_state.dart
└── auth_event.dart (Bloc only)
Usage
- Open your Flutter project in VS Code
- Press: Ctrl + Shift + P
- Run: Create Clean Architecture Feature
Generated Boilerplate Includes
Data Layer
- Remote & Local Datasources
- Repository Implementation
Domain Layer
Presentation Layer
- Page (Flutter UI)
- Bloc / Cubit (based on selection)
- State & Event classes
Support
If you find this useful, consider leaving a ⭐ on the marketplace!
| |