This VS Code extension allows Flutter developers to quickly scaffold a feature-driven clean architecture structure in their projects. The extension creates folders and files based on the Clean Architecture pattern, helping to maintain a modular and scalable codebase.
- Prompts for a feature name.
- Creates a folder structure adhering to feature-driven Clean Architecture.
- Available as a right-click context menu option for Dart/Flutter projects.
- Generates
data,domain, andpresentationlayers for the feature.
When you right-click on a folder and select the option to generate the clean architecture structure, the following directories will be created inside the folder you right-clicked on:
project_structure/
├── data/
│ ├── datasource/
│ ├── model/
│ └── repository/
|
├── domain/
│ ├── entities/
│ ├── repository/
│ └── usecases/
|
├── presentation/
│ ├── screens/
│ ├── state/
│ └── widgets/
- Right-click on any folder within a Dart/Flutter project in the VS Code Explorer.
- Select the
Flutter: Create New Featureoption from the context menu. - Input the name of the feature (e.g., "auth").
- The extension will create the folder structure for that feature under the folder you selected.
You can install this extension from the VS Code marketplace or by downloading it manually and placing it in the extensions folder.
- The extension doesn't currently support file templates (only folder creation).
