A productivity-focused VS Code extension for Flutter developers using Clean Architecture and Riverpod.
Scaffold complete feature folders with domain, data, and presentation layers in seconds.
Commands
| Command | Description |
|---|---|
Generate Clean + Riverpod Feature |
Scaffolds a new feature folder with domain, data, and presentation layers |
Generate Feature Here |
Generate a feature in the selected folder location |
Generate Layer |
Add missing layers to an existing feature |
Generate Clean + Riverpod Feature
Opens an input box, asks for a feature name, then generates the following structure inside lib/features/<name>/:
lib/features/<name>/
├── domain/
│ └── <name>_entity.dart
├── data/
│ └── <name>_repository.dart
└── presentation/
└── <name>_screen.dart
The presentation layer generates a ready-to-use ConsumerWidget with Riverpod imports.
Generate Feature Here
Right-click any folder in the Explorer and select "Generate Feature Here" to create a new feature in that specific location instead of the default lib/features/ folder.
Use cases:
- Generate features in custom directories
- Create feature modules in specific packages
- Organize features by domain or module
Generate Layer
Right-click on an existing feature folder and select "Generate Layer" to add missing architecture layers. The extension will:
- Detect which layers already exist (domain, data, presentation)
- Show you only the missing layers
- Let you select multiple layers to create at once
- Generate the selected layers with proper naming and structure
Perfect for:
- Adding a data layer to an existing feature
- Completing partially implemented features
- Incrementally building complex features
How to Use
Command Palette
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type
Generate Clean + Riverpod Feature - Enter your feature name (e.g.,
user,product,order)
Keyboard Shortcut
- Windows/Linux:
Ctrl+Shift+A(when editing Dart files) - macOS:
Cmd+Shift+A(when editing Dart files)
Explorer Context Menu
Right-click on any folder in the Explorer to access these options:
- Generate Clean + Riverpod Feature - Available when right-clicking on a
featuresfolder - Generate Feature Here - Available on any folder to create a feature in that location
- Generate Layer - Available on any folder to add missing layers to existing features
Requirements
- A Flutter project open as the workspace root
flutter_riverpodin yourpubspec.yaml
Release Notes
0.0.5
- 🎉 Context Menu Integration - Right-click functionality for faster workflow
- ✨ Generate Feature Here - Create features in any folder location
- ✨ Generate Layer - Add missing layers to existing features
- 🚀 Smart Layer Detection - Automatically detects which layers already exist
- 📦 Auto Version Incrementing - Package command now increments version automatically
0.0.1
- Initial release
generateFeaturecommand with domain, data, and presentation scaffolding