flutter_arch_generator 1.2.0
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 NoParamscore/network/network_info.dart- Network connectivity abstractioncore/utils/- Utils folder for common utilities
- New
CoreGeneratorutility 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
--stateflag:- Bloc:
flutter_bloc,bloc - Provider:
provider - GetX:
get - Riverpod:
flutter_riverpod,riverpod_annotation
- Bloc:
- Core dependencies:
- New
--no-depsflag to skip automatic dependency updates - New
PubspecManagerutility 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