flutter_architect 2.0.2
flutter_architect: ^2.0.2 copied to clipboard
CLI to scaffold production-ready Flutter apps with Clean Architecture or MVVM, flavors, localization, CI/CD, and feature generators.
2.0.2 #
- Added a complete demo under
example/sample_app/: full Clean Architecture snapshot (app/core/features/auth, flavors, l10n, DI wiring) for browsing on pub.dev / GitHub. - Expanded
example/example.mdinto an end-to-end walkthrough.
2.0.1 #
- Added
example/per pub package layout (example/example.md+example/main.dartwithpackage:import). - Documented
NameUtilsconstructor for complete public API docs.
2.0.0 #
Production-oriented release: stronger architecture scaffolding plus localization, flavors, CI/CD, and micro-generators.
Architecture improvements #
- Clean Architecture folder rename to plural layers (
datasources,repositories). - Models use
toEntity()/fromEntity()instead of extending entities. - Repository error mapping for
ServerException,CacheException, and network failures. - Features generate wired UseCases, presentation layers, pages, and GetIt
di/modules. - Hive option generates local datasources with remote-first / local-fallback templates.
- MVVM gains a
services/layer; state management choice is respected (BLoC / Riverpod / Provider / GetX). - Clean-only core (
UseCase) is not generated for MVVM projects. - Theme, config, DI, logger, constants, and loading widget boilerplate on
init. architect.yamlstores architecture, state management, Hive, GetIt, l10n, and flavors.
Localization #
- Optional l10n setup:
l10n.yaml,lib/l10n/*.arb, pubspec patch, andAppwiring.
Flavors & environment #
main_development.dart/main_staging.dart/main_production.dart..env.*reference files andAppConfig.bootstrap(Environment).- VS Code
launch.jsonconfigurations per flavor.
CI/CD #
- GitHub Actions and/or Codemagic templates during
init. - Standalone command:
flutter_architect cicd [-p github|codemagic|both].
Micro-generators #
create screen <Name> --feature <feature>create widget <Name> [--feature <feature>]create datasource <Name> --feature <feature> [--local]
Bug fixes (pre-publish) #
- Fixed
pubspec.yamllocalization patch (replaceFirstMappedfor flutter_localizations). NoParamsis now a const constructor (fixes BLoCconst NoParams()).create datasourcealso scaffolds matching model + entity stubs.- Removed unused import from feature DI templates.
--no-interactionnow applies full default configuration (for CI/smoke tests).
Breaking changes #
- Feature folder layout changed (
repository→repositories,datasource→datasources). - Generated models no longer extend entities.
- MVVM feature layout now includes
services/and SM-specific folders. SetupConfig/architect.yamlgained new fields (localization, flavors).
Projects generated with 1.x are not auto-migrated; re-run generators in a new app or adapt paths manually.