flutterhexagen
v1.0.4
Published
Hexagonal Architecture Scaffolding for Flutter - Vortex Solutions
Readme
💎 FlutterHexaGen
Enterprise-Grade Hexagonal Architecture Scaffolding for Flutter Created by Vortex Solutions
FlutterHexaGen is a high-performance CLI tool designed to scaffold Flutter applications following the Hexagonal Architecture (Ports and Adapters) pattern. It ensures your business logic remains decoupled from frameworks, UI, and external services.
🚀 Quick Start
Initialize a new enterprise project in seconds:
npx flutterhexagen init my_awesome_appThen, generate your first hexagonal context:
cd my_awesome_app
npx flutterhexagen gen context product --test🏗️ Key Features
- Modular Hexagonal Structure: Automatic generation of
domain,application, andinfrastructurelayers. - State Management Choices: Choose between BLoC (Event-driven) or Riverpod (Reactive).
- Functional Error Handling: Built-in support for fpdart or dartz using the
Eithertype. - Dependency Injection: Pre-configured with GetIt and Injectable.
- Decoupled Routing: Setup with GoRouter for scalable navigation.
- Clean Code Architecture: Enforces separation of concerns and testability.
🛠️ CLI Reference
init <name>
Scaffolds a complete enterprise Flutter project.
--state <type>:bloc,riverpod(default:bloc).--error <type>:fpdart,dartz(default:fpdart).-y, --yes: Skip interactive prompts and use defaults.
gen <type> <name>
Generates hexagonal artifacts.
<type>:context,entity,use-case,port,bloc,provider,adapter,data-source.--test: Generates a corresponding test file.
Developed by rbaezc. Licensed to Vortex Solutions.
