Skip to main content

flutter_architecture_cli 1.0.5 copy "flutter_architecture_cli: ^1.0.5" to clipboard
flutter_architecture_cli: ^1.0.5 copied to clipboard

A command-line tool to generate production-ready clean architecture in Flutter using flutter_bloc, GetX, or RxDart & Provider.

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 command-line tool to generate production-ready clean architecture in Flutter using flutter_bloc, GetX, or RxDart & Provider.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, io, path

More

Packages that depend on flutter_architecture_cli