flutter_architecture_generator 1.2.4
flutter_architecture_generator: ^1.2.4 copied to clipboard
A CLI tool to scaffold professional Flutter projects with Clean, MVVM, BLoC, GetX, or Provider architecture plus DI, routing, and tests.
1.2.4 #
๐ High-Performance API Engine (Major Upgrade) #
- Recursive Nested Models: Automatically detects and scaffolds separate model/entity files for nested JSON objects and lists.
- Full HTTP Method Support: Generate integrations for
GET,POST,PUT,DELETE, andPATCHusing the-mflag. - Request Body Support: New
-b(body) flag allows passing a sample JSON body for POST/PUT requests to infer structure. - Auto-DI Integration: Automatically registers generated services, repositories, and use cases in
injection_container.dart(GetIt) with architecture-aware import paths. - Unit Test Generation: Scaffolds specialized unit tests for services and repositories with correct directory structures (
test/features/X/data/services). - Clean Architecture aware: Entities and Models are correctly linked (models extend entities) for perfect cross-layer type safety.
๐๏ธ Architectural Core & Stability #
- Unified Routing Templates: Re-engineered
app.dart,main.dart, andapp_router.dartfor both AutoRoute and GoRouter. - Smart DI Registration: Rewrote the
DIRegistrarto independently register architecture-specific layers and state-management logic. - Enhanced Chat Module: Added support for Riverpod and GetX state management in the chat feature.
- Theme Safety: Hardened the generated
ChatThemeExtensionwith null-safe fallbacks.
๐ Bug Fixes #
- Local File Support: Fixed the
apicommand's_fetchApiResponseto correctly handlefile:///URIs for local testing and specification. - Import Resolution: Fixed incorrect relative imports in Repository Implementations and Unit Tests for Clean Architecture projects.
- Asset Registration: Automatically registers
.env.devand.env.prodas assets inpubspec.yaml. - Path Handling: Fixed path leakage for test files and improved consistency across all transactional operations.
- Type Safety: Resolved return type mismatches and improved field inference for complex JSON responses.
- Template Fixes: Resolved broken interpolation in Riverpod state management templates and Freezed class names.
1.2.1 #
๐ฆ Automated Dependency Management #
- Smart Pubspec Updates: Project initialization and feature generation now automatically add required dependencies to
pubspec.yaml. - Automatic Cleanup: Deleting features (like the Chat module) now automatically removes their specific dependencies from
pubspec.yaml. - Plan Preview: Dependency changes are now included in the execution plan for review before applying.
1.2.0 #
- Interactive CLI Prompts:
initcommand now uses high-end interactive selection for architecture and state management if flags are omitted. - Smart Code Refactoring: New
refactor modelcommand to safely inject fields into existing Freezed models without overwriting logic.
๐จ Design System & Theming #
- Theme Generator: New
themecommand to generate a full premium Design System with Dark/Light mode, semantic tokens, and HSL gradients. - Theme Extensions: Specialized tokens for Chat and components now part of the default generated theme.
๐ฌ Professional Chat Module #
- Socket.io Pro: Resilient real-time engine with connection status, auth tokens, and dedicated event pipelines.
- Message Lifecycle: Full status tick system (Sending -> Sent -> Delivered -> Read).
- Typing Indicators: Real-time "Typing..." feedback in AppBar and Message List.
- Threaded Replies: Native swipe-to-reply logic with quoted context UI.
๐ Documentation & Community #
- Documentation Portal: Full overhaul with deep-dive guides for all core modules.
- Support: Added community support link ("Buy Me A Coffee").
1.1.1 #
๐๏ธ Major Refactoring & Transactional Engine #
- Transactional Architecture: Introduced a new
FileActionsystem. Every command now follows a Plan -> Confirm -> Execute lifecycle. - Undo / Rollback: Added the
undocommand to revert the last 10 operations using a persistent history log. - Modular Template System: Users can now override default templates by placing
.templatefiles in.flutter_arch_gen/templates/. - Refactored Core: Split the monolithic
feature_helper.dartinto specialized modules (Generators, Registrars, Helpers).
โจ New Commands #
apiโ Generate Model + Repository + Service from an endpoint URL or spec.screenโ Generate pre-wired screens (List, Form, Detail) for a feature.widgetโ Generate StatelessWidget or StatefulWidget.serviceโ Generate standalone Services.repositoryโ Generate standalone repository interfaces and implementations.blocโ Generate standalone BLoCs or Cubits with events and states.deleteโ Safely remove a feature and clean up its registrations.renameโ Rename an existing feature with full import/directory updates.migrateโ Switch architecture or state management mid-project.undoโ Revert the last destructive command.
๐ Improvements & Features #
- Dry Run Support: Added
--dry-runto all destructive commands to preview changes. - Monorepo Support: Added
--outputflag to target specific packages. - Config Profiles: Support for multiple configurations via
--config. - Enhanced Initialization:
initnow supports dry-runs, overwrite protection, and automated template setup. - Routing: Added support for AutoRoute, GoRouter, and standard Navigator registration.
- Fixed redundant imports and improved documentation across the entire package.
๐งช Testing & Quality #
- Expanded test suite to 40+ tests covering versioning, config, and string utilities.
- Resolved all lint and static analysis warnings for a 100% clean check.
1.1.0 #
- Multi-architecture support: Clean, MVVM, BLoC, GetX, Provider
- State management: BLoC, Riverpod, Provider, GetX
- Routing: GoRouter, AutoRoute
- Firebase integration
- Localization support
- Custom feature generation
1.0.2 #
- Bug fixes and improvements
1.0.1 #
- Bug fixes and improvements
1.0.0 #
- Initial release