flutter_architecture_cli 1.0.6
flutter_architecture_cli: ^1.0.6 copied to clipboard
A Flutter architecture & architect CLI plugin to scaffold clean architecture with 19 state managements including Riverpod, BLoC, GetX, Signals, Hooks, and more.
1.0.6 #
- 19 State Management Architectures Supported:
- ValueNotifier: Native zero-dependency reactive state management with
ValueNotifier<T>,ValueListenableBuilder<T>, and typed immutable state objects. - InheritedWidget: Pure Flutter SDK dependency-free scoped state sharing using
InheritedNotifier<T>,ChangeNotifier, and scoped controller pattern. - Flutter Hooks: Clean reactive component state using
flutter_hooks: ^0.20.5withHookWidget,useState,useEffect,useCallback, anduseMemoized. - Triple: Segmented State Pattern via
flutter_triple: ^3.0.0withStore<T>,ScopedBuilder, and discrete state/loading/error segment handling. - Elementary: Robust MVVM architecture for Flutter using
elementary: ^3.2.1andelementary_helper: ^1.1.0withElementaryModel,WidgetModel, andEntityStateNotifier. - Hydrated BLoC: Automatic state persistence to disk using
hydrated_bloc: ^9.1.5,flutter_bloc: ^8.1.6, andpath_provider: ^2.1.2withfromJsonandtoJsonserialization. - StateX: Proven MVC architecture using
state_extended: ^7.6.0withStateXControllerandStateXstateful views. - Flutter Command: Reactive command-based MVVM pattern using
flutter_command: ^7.2.2withCommand.createAsyncNoParamandCommandBuilder. - Binder: Scoped state binding using
binder: ^0.4.0withStateRef,Logic, andBinderScope. - Fish-Redux: Component-based Redux architecture using
flying_redux: ^0.1.0(null-safe Dart 3 continuation) withPage,Action,Reducer, andEffect. - Riverpod: Modern reactive state management using
flutter_riverpod: ^2.5.1withStateNotifier<T>,StateNotifierProvider,ConsumerStatefulWidget, andProviderScope. - Signals: Fine-grained reactive state management using
signals_flutter: ^5.5.0withsignal(),Watch(), and reactive signal classes. - MobX: Transparent reactive functional state management using
mobx: ^2.3.0andflutter_mobx: ^2.2.1withObservable,runInAction, andObserverwithout requiring build_runner. - Redux: Predictable centralized state container using
redux: ^5.0.0andflutter_redux: ^0.10.0withStore<AppState>,StoreProvider,StoreConnector, async thunk actions, and pure reducers. - Cubit: Simplified method-based BLoC using
Cubit<State>,BlocProvider, andBlocBuilder. - Pure Provider: Standard state management using
provider: ^6.1.5+1withChangeNotifierProvider,Consumer<T>, andChangeNotifier. - Preserved full support for flutter_bloc, GetX, and RxDart + Provider.
- ValueNotifier: Native zero-dependency reactive state management with
- Strict 100% State Management Isolation:
- Clean dependency and class isolation across all 19 architectures.
- Projects scaffolded with any architecture contain strictly only that architecture's required dependencies with zero cross-talk.
ValueNotifierandInheritedWidgettemplates require zero external packages (pure Flutter SDK).- Unused RxDart
base_bloc.dartis omitted for all non-RxDart projects.
- CLI & Interactive Terminal:
- Interactive selection menu expanded from
[1]through[19]for interactive project creation. - Dedicated CLI shortcut flags across both
createandcreate_feature:--valuenotifier,--inheritedwidget,--hooks,--triple,--elementary,--hydrated_bloc,--statex,--command,--binder,--fish_redux,--riverpod,--signals,--mobx,--redux,--cubit,--provider,--bloc,--getx, and--state <choice>. - Smart auto-detection in
create_featureauto-detects all 19 architectures frompubspec.yamland feature folders without requiring manual flags. - Architecture-tailored smoke test generation in
test/widget_test.dartensuresflutter testsucceeds out of the box across all 19 options.
- Interactive selection menu expanded from
- Testing & Quality:
- 85 unit tests verifying template generation, architecture auto-detection, and strict state isolation across all 19 state managers.
1.0.5 #
- Multi-State Management Support:
- Added full support for flutter_bloc (
Bloc<Event, State>,BlocProvider, andBlocBuilder). - Added full support for GetX (
GetxControllerwith.obs,Bindings,GetView, andObx).
- Added full support for flutter_bloc (
- Strict State Management Isolation:
- 100% clean segregation of dependencies—projects created with
--getxcontain strictlyget: ^4.6.6(zerorxdart, zeroprovider). - Projects created with
--bloccontain strictlyflutter_bloc: ^8.1.6(zerorxdart, zeroprovider). - Omitted unused RxDart
base_bloc.dartwhen scaffolding GetX or flutter_bloc applications.
- 100% clean segregation of dependencies—projects created with
- CLI & Command Enhancements:
- Added interactive terminal selection menu when running
flutter_architecture_cli create <app_name>([1] RxDart,[2] flutter_bloc,[3] GetX). - Added
--state <rxdart|bloc|getx>,--bloc, and--getxflags to bothcreateandcreate_featurecommands. - Added smart architecture auto-detection in
create_feature: automatically detectsflutter_blocorgetinpubspec.yamland scaffolds matching code with zero configuration.
- Added interactive terminal selection menu when running
- Architecture-Tailored Scaffolding:
- Architecture-specific Dependency Injection (
Get.putbindings for GetX,MultiRepositoryProviderfor BLoC, andMultiProviderfor RxDart). - Architecture-tailored smoke test generation in
test/widget_test.dartensuringflutter testsucceeds out of the box for all state management choices. - Automatically configure
flutter_architecture_cli: ^1.0.5indev_dependenciesof newly generated projects. - Safe null and bounds handling in UI templates for empty string initial letters.
- Architecture-specific Dependency Injection (
- Testing & Quality:
- Added comprehensive unit tests covering template generation and strict state management isolation.
1.0.4 #
- Add full FVM (Flutter Version Management) support across all commands with
--fvmand--fvm-versionflags. - Add smart auto-detection for FVM when
flutteris missing from system PATH or in FVM workspaces. - Auto-configure
.fvm/flutter_sdkin.gitignoreand.vscode/settings.jsonfor newly created projects. - Automatically include
flutter_architecture_cli: ^1.0.4indev_dependenciesof newly generated projects. - Add project root directory auto-detection so all commands work smoothly even from subdirectories.
- Add smart data source auto-detection in
create_repositorycommand. - Support Kotlin DSL (
build.gradle.kts) inchange_bundle_id. - Fix smoke test generation so
flutter testsucceeds out of the box in new projects. - Fix
BaseUiState.isError()to prevent uninitialized states from evaluating as errors. - Make
AppLocalizationsnull-safe with fallback inAppTextfor widget tests. - Add comprehensive form validation helper (email, phone, password, minLength/maxLength, url, numeric, compose) in generated projects.
1.0.3 #
- Add Medium blog tutorial link to README.md.
1.0.2 #
- Update README.md with dev_dependency setup guide and future roadmap goals.
1.0.1 #
- Fix missing dartdoc comments for public API symbols.
- Add code example in example/example.dart.
1.0.0 #
- Initial release of Clean Architecture Generator.
- Scaffold clean architecture layers using RxDart and Provider.
- Generate constants, theme, storage, network, base classes, localization, DI, and routes.
- Generate pre-styled common widgets.
- Support CLI commands:
create,create_screen,create_feature,create_model,create_repository,create_datasource, andcreate_service.