clean_helper 1.2.2 copy "clean_helper: ^1.2.2" to clipboard
clean_helper: ^1.2.2 copied to clipboard

A CLI tool for scaffolding Flutter clean architecture projects.

1.2.2 #

  • Add use case generation to add-repo --add-sample: generates Get{Name}UseCase and Post{Name}UseCase in domain/use_cases/, and Get{Name}Params / Post{Name}Params in domain/params/
  • Use case params use typed fields: get{Name}Query (String) for get, post{Name}Param1 (String) for post
  • Domain repository sample methods now accept params: get{Name}(Get{Name}Params) / post{Name}(Post{Name}Params)
  • Data source base get method now takes String? q instead of no args
  • REST data source get method now annotated with @Query('q')
  • Repository impl maps params to data layer: params.get{Name}Query → datasource q, params.post{Name}Param1 → request model p1
  • Request model gains a sample {String? p1} constructor field

1.2.1 #

  • Rename ScreenPageProvider — generated widget class is now ${Feature}PageProvider, folder moves from presentation/screens/ to presentation/page_providers/, file renamed from ${feature}_screen.dart to ${feature}_page_provider.dart

1.2.0 #

  • Write analysis_options.yaml as the first step in init, before directory creation or any flutter pub add calls
  • Run flutter pub get immediately after analysis_options.yaml is written and before adding dependencies
  • Sort dependencies and dev_dependencies alphabetically after all packages are added (sortPubspecDeps)
  • Stamp clean-helper.version: <version> in the project's pubspec.yaml at the end of init, merged into the existing clean-helper: section alongside mono_repo_apps if present
  • Warn on version mismatch — every command now checks clean-helper.version in pubspec.yaml against the running tool version and prints a warning on stderr if they differ
  • Rename CleanCallAdapterRetrofitCallAdapter; generated file moves to lib/core/network/utils/retrofit_call_adapter.dart
  • Fix kebab-case in CLI usage strings (<feature-name>, <repo-name>, --scope=<app-name>)
  • Fix next-steps message printed after init (add_featureadd-feature)

1.1.5 #

  • Add --add-sample flag to add_repo command
  • When --add-sample is passed, generate get/post sample methods in the domain repo, data source base, repository impl, and REST data source, and create request/response model files
  • Without --add-sample (default), all files are generated as empty scaffolds and request/response model files are skipped
  • Rename all CLI command names from snake_case to kebab-case (e.g. add_featureadd-feature, build_runnerbuild-runner, etc.)
  • Rename --no_rest flag to --no-rest on add-repo command for consistency

1.1.4 #

  • Move retrofit_logger.dart to lib/core/network/utils/ and update its app_logger import path
  • Add CleanCallAdapter — a Retrofit CallAdapter that wraps responses in Either<Failure, T> via safeExecute
  • Generate CleanCallAdapter during init network setup
  • Update rest_data_source_template to use @RestApi(callAdapter: CleanCallAdapter) and return Either<Failure, T>
  • Update data_source_base_template to return Either<Failure, T> on all methods
  • Remove safeExecute from data_repo_template — repository now delegates directly to the data source

1.1.3 #

  • Fix AppBlocObserver import path for app_logger.dart to ../../core/utils/app_logger.dart

1.1.2 #

  • Remove duplicate Logger registration from AppModule template (kept in CoreModule)
  • Drop --delete-conflicting-outputs flag from all build_runner invocations (removed in latest build_runner)

1.1.1 #

  • Replace dart:developer log() with AppLogger across BlocObserver, safe_execute, safe_cast, and get_current_function_name templates
  • Use static error messages instead of dynamic function names in error logging
  • Replace BlocObserver DI registration with Logger singleton in AppModule template

1.1.0 #

Update Readme

1.0.0 #

  • Initial version.
0
likes
140
points
533
downloads

Documentation

API reference

Publisher

verified publishergtirkha.com

Weekly Downloads

A CLI tool for scaffolding Flutter clean architecture projects.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, cli_completion, path

More

Packages that depend on clean_helper