A Visual Studio Code extension that generates a modular folder structure for Flutter projects using Riverpod and GoRouter, following clean architecture principles.
✨ Features
📁 Generate Base Flutter Project Structure
Creates a well-organized lib/src folder structure
Sets up directories for app, routing, features, resources, and more
Auto-generates essential Dart files like main.dart, app.dart, and app_router.dart
Adds dependencies for flutter_riverpod and go_router
🧩 Generate a New Feature
Prompts for a feature name (e.g., auth, home)
Creates clean architecture layers:
application/services
data/
domain/models
ui/pages, widgets, states, controllers
Auto-generates a sample screen for the feature
🛠 Commands
Command ID
Description
flutter-modular.flutterDirStructure
Generate the full Flutter app folder structure
flutter-modular.flutterFeatureDirStructure
Generate a folder structure for a new feature
🚀 Usage
Open a Flutter project in VS Code.
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS).
Run the command:
Generate Base Structure: Flutter Modular: Generate Project Structure