flutter_architecture_generator 1.1.2
flutter_architecture_generator: ^1.1.2 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.1.2 #
๐ Bug Fixes #
- Dependency Installation: Fixed an issue where required dependencies were not correctly added to
pubspec.yamlduringinitandmigrate. - Template Interpolation: Fixed broken
${...}interpolation inapp.dartand Riverpod templates. - Monorepo Support: Fixed path handling in
TestGeneratorandDoctorCommandwhen using custom output directories (-o/--output). - CLI Consistency: Fixed
--forcebypass inGenerateFeatureCommandto properly skip confirmation prompts.
๐งน Cleanup #
- Removed accidental test files from the package root.
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