Skip to main content

flutter_arch_generator 1.2.0 copy "flutter_arch_generator: ^1.2.0" to clipboard
flutter_arch_generator: ^1.2.0 copied to clipboard

A CLI tool to generate Flutter clean architecture feature structures with boilerplate code.

Changelog #

All notable changes to this project will be documented in this file.

1.2.0 - 2024-12-19 #

Added #

  • Core Files Generation: Automatically generates essential core files that are referenced by templates
    • core/error/failures.dart - Failure classes (Failure, ServerFailure, CacheFailure, NetworkFailure)
    • core/error/exceptions.dart - Exception classes (AppException, ServerException, CacheException, NetworkException, ValidationException)
    • core/usecases/usecase.dart - Base UseCase abstract class with NoParams
    • core/network/network_info.dart - Network connectivity abstraction
    • core/utils/ - Utils folder for common utilities
  • New CoreGenerator utility that creates core infrastructure files

Improved #

  • Core files are only generated if they don't already exist (non-destructive)
  • Better project structure with all necessary dependencies resolved

1.1.0 - 2024-12-19 #

Added #

  • Automatic Dependency Management: The tool now automatically adds required dependencies to pubspec.yaml
    • Core dependencies: equatable, dartz
    • State management dependencies based on --state flag:
      • Bloc: flutter_bloc, bloc
      • Provider: provider
      • GetX: get
      • Riverpod: flutter_riverpod, riverpod_annotation
  • New --no-deps flag to skip automatic dependency updates
  • New PubspecManager utility for managing pubspec.yaml dependencies

Improved #

  • Updated help text with dependency information
  • Better post-generation instructions (prompts to run flutter pub get)
  • Enhanced README with dependency management documentation

1.0.0 - 2024-12-16 #

Added #

  • Initial release of arch_generator
  • Clean architecture folder structure generation
  • Support for Data, Domain, and Presentation layers
  • Datasource generator (abstract interface + implementation)
  • Model generator with JSON serialization templates
  • Entity generator with Equatable
  • Repository generator (interface + implementation)
  • Usecase generator with Either pattern
  • Params generator
  • Screen generator (StatelessWidget)
  • Widget generator
  • State management support:
    • Bloc (bloc, event, state files)
    • Provider (ChangeNotifier)
    • GetX (controller + binding)
    • Riverpod (provider + notifier)
  • Automatic code formatting
  • Colored CLI output
  • Input validation
  • Help command
  • Comprehensive documentation

Features #

  • Template-based code generation
  • Clean architecture best practices
  • Multiple state management solutions
  • Customizable output directory
  • Optional component generation
  • Automatic naming convention handling (snake_case, PascalCase)

Documentation #

  • Comprehensive README with examples
  • Detailed usage instructions
  • Deployment guide
  • Code templates with TODO comments
1
likes
130
points
38
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A CLI tool to generate Flutter clean architecture feature structures with boilerplate code.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

args, mason_logger, path

More

Packages that depend on flutter_arch_generator