flutter-architecture-gen is a VS Code extension that helps Flutter developers scaffold complete project architectures quickly. It supports multiple architecture patterns and state management solutions, generating all the necessary boilerplate including models, controllers/services, Bloc/Cubit logic, views, dummy data, and a ready-to-run main.dart.
Features
Generate Clean, MVC, MVVM, Event-driven, and Monolithic architectures.
Choose between Bloc, Cubit, Provider, or Riverpod for state management.
Automatic generation of:
Models
Controllers / Services
Bloc/Cubit events, states, and blocs
Views (pages)
Dummy JSON data
main.dart entry point
Ready-to-run feature structure with minimal setup.
Requirements
Flutter SDK installed and configured.
VS Code with Dart and Flutter extensions installed.
Usage
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) and select: Flutter Architecture: Generate
Choose your architecture type.
Choose your state management solution.
Enter the entity name (default is Todo).
The extension generates all necessary files and folders in your workspace.
The generated files include a fully structured feature folder with models, services/controllers, Bloc/Cubit logic, views, and dummy JSON data for immediate use.
Extension Settings
This extension does not require any additional configuration. All generation steps are handled interactively through the command palette.