Architect Your Next Masterpiece
The most powerful CLI tool to scaffold professional Flutter projects. From enterprise Clean Architecture to real-time Chat modules, generate production-ready code in seconds.
dart pub global activate flutter_architecture_generator
5
Architectures
19
CLI Commands
100
% Type Safe
Enterprise Ready
Setup in 60 Seconds
Streamline your entire development workflow from initialization to final release.
Installation
Install the generator globally using the Dart package manager.
dart pub global activate flutter_architecture_generator
Initialize Project
Set up the architectural foundation in your existing Flutter project.
flutter_arch_gen init
Generate Features
Create a full feature module with Domain, Data, and UI layers instantly.
flutter_arch_gen feature auth
Mastering Clean Architecture
Designed for scalability, testability, and separation of concerns.
Domain Layer (The Core)
Contains Business Logic, Entities, and Repository Interfaces. This layer is completely independent of any other layer or framework.
- Entities (Plain Dart Objects)
- Use Cases (Business Logic)
- Repository Interfaces
Data Layer
Implements the Domain interfaces and handles data from remote APIs (Dio) or local storage.
- Models (JSON Serialization)
- Data Sources (API/DB calls)
- Repository Implementations
Presentation Layer
Everything related to UI and state management. BLoC, Cubit, or Provider live here.
- Views/Pages
- State Management (BLoC/Cubit)
- Widgets & Themes
Command Reference
Every tool you need to build faster, cleaner apps.
Select a command to dive deep into its usage and capabilities.
The Ultimate API Engine
Scaffold entire data layers from a sample JSON or a live endpoint. Our engine intelligently infers types, generates recursive models, and sets up DI & Tests.
flutter_arch_gen api User -u file:///sample.json -m POST -b '{"name":"test"}' -f auth
{
"user": {
"name": "Naimish",
"address": {
"city": "Mumbai"
}
}
}
Power Configuration
Customize the generator behavior to match your team's coding style via
.flutter_arch_gen.json.
architecture
Options: clean, mvvm, mvc, bloc_standard
state_management
Options: bloc, cubit, provider, riverpod
theme_mode
Options: dynamic, static
{
"project_name": "my_app",
"architecture": "clean",
"state_management": "bloc",
"state_management_package": "flutter_bloc",
"router": "go_router",
"use_freezed": true
}
Real-time Chat Engine
Don't waste weeks building chat foundations. Generate a battle-tested Socket.io chat module that scales to millions.
Loved by Modern Developers
Help us stay gravity-free. Join our growing community of architects, star the project on GitHub, or connect with the engine core to help us build the future of Flutter development.