Skip to main content

flutter_architecture_cli 1.0.6 copy "flutter_architecture_cli: ^1.0.6" to clipboard
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.5 with HookWidget, useState, useEffect, useCallback, and useMemoized.
    • Triple: Segmented State Pattern via flutter_triple: ^3.0.0 with Store<T>, ScopedBuilder, and discrete state/loading/error segment handling.
    • Elementary: Robust MVVM architecture for Flutter using elementary: ^3.2.1 and elementary_helper: ^1.1.0 with ElementaryModel, WidgetModel, and EntityStateNotifier.
    • Hydrated BLoC: Automatic state persistence to disk using hydrated_bloc: ^9.1.5, flutter_bloc: ^8.1.6, and path_provider: ^2.1.2 with fromJson and toJson serialization.
    • StateX: Proven MVC architecture using state_extended: ^7.6.0 with StateXController and StateX stateful views.
    • Flutter Command: Reactive command-based MVVM pattern using flutter_command: ^7.2.2 with Command.createAsyncNoParam and CommandBuilder.
    • Binder: Scoped state binding using binder: ^0.4.0 with StateRef, Logic, and BinderScope.
    • Fish-Redux: Component-based Redux architecture using flying_redux: ^0.1.0 (null-safe Dart 3 continuation) with Page, Action, Reducer, and Effect.
    • Riverpod: Modern reactive state management using flutter_riverpod: ^2.5.1 with StateNotifier<T>, StateNotifierProvider, ConsumerStatefulWidget, and ProviderScope.
    • Signals: Fine-grained reactive state management using signals_flutter: ^5.5.0 with signal(), Watch(), and reactive signal classes.
    • MobX: Transparent reactive functional state management using mobx: ^2.3.0 and flutter_mobx: ^2.2.1 with Observable, runInAction, and Observer without requiring build_runner.
    • Redux: Predictable centralized state container using redux: ^5.0.0 and flutter_redux: ^0.10.0 with Store<AppState>, StoreProvider, StoreConnector, async thunk actions, and pure reducers.
    • Cubit: Simplified method-based BLoC using Cubit<State>, BlocProvider, and BlocBuilder.
    • Pure Provider: Standard state management using provider: ^6.1.5+1 with ChangeNotifierProvider, Consumer<T>, and ChangeNotifier.
    • Preserved full support for flutter_bloc, GetX, and RxDart + Provider.
  • 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.
    • ValueNotifier and InheritedWidget templates require zero external packages (pure Flutter SDK).
    • Unused RxDart base_bloc.dart is 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 create and create_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_feature auto-detects all 19 architectures from pubspec.yaml and feature folders without requiring manual flags.
    • Architecture-tailored smoke test generation in test/widget_test.dart ensures flutter test succeeds out of the box across all 19 options.
  • 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, and BlocBuilder).
    • Added full support for GetX (GetxController with .obs, Bindings, GetView, and Obx).
  • Strict State Management Isolation:
    • 100% clean segregation of dependencies—projects created with --getx contain strictly get: ^4.6.6 (zero rxdart, zero provider).
    • Projects created with --bloc contain strictly flutter_bloc: ^8.1.6 (zero rxdart, zero provider).
    • Omitted unused RxDart base_bloc.dart when scaffolding GetX or flutter_bloc applications.
  • 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 --getx flags to both create and create_feature commands.
    • Added smart architecture auto-detection in create_feature: automatically detects flutter_bloc or get in pubspec.yaml and scaffolds matching code with zero configuration.
  • Architecture-Tailored Scaffolding:
    • Architecture-specific Dependency Injection (Get.put bindings for GetX, MultiRepositoryProvider for BLoC, and MultiProvider for RxDart).
    • Architecture-tailored smoke test generation in test/widget_test.dart ensuring flutter test succeeds out of the box for all state management choices.
    • Automatically configure flutter_architecture_cli: ^1.0.5 in dev_dependencies of newly generated projects.
    • Safe null and bounds handling in UI templates for empty string initial letters.
  • 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 --fvm and --fvm-version flags.
  • Add smart auto-detection for FVM when flutter is missing from system PATH or in FVM workspaces.
  • Auto-configure .fvm/flutter_sdk in .gitignore and .vscode/settings.json for newly created projects.
  • Automatically include flutter_architecture_cli: ^1.0.4 in dev_dependencies of 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_repository command.
  • Support Kotlin DSL (build.gradle.kts) in change_bundle_id.
  • Fix smoke test generation so flutter test succeeds out of the box in new projects.
  • Fix BaseUiState.isError() to prevent uninitialized states from evaluating as errors.
  • Make AppLocalizations null-safe with fallback in AppText for 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, and create_service.
12
likes
160
points
266
downloads

Documentation

API reference

Publisher

verified publisherdhartichauhan.blogspot.com

Weekly Downloads

A Flutter architecture & architect CLI plugin to scaffold clean architecture with 19 state managements including Riverpod, BLoC, GetX, Signals, Hooks, and more.

Repository (GitHub)
View/report issues

Topics

#architecture #clean-architecture #cli #code-generation #scaffolding

License

MIT (license)

Dependencies

args, path

More

Packages that depend on flutter_architecture_cli