Releases: warioddly/dimengen
v1.0.0
🎉 Dimengen v1.0.0 - Major Release
We're excited to announce the stable 1.0.0 release of Dimengen! This major version brings significant improvements, new features, and better developer experience.
🚀 What's New
✨ Dot Shorthands Feature
The generated code now uses modern Dart dot shorthands for cleaner, more concise syntax:
Before:
static const EdgeInsets m = EdgeInsets.all(16.0);
static const BorderRadius s = BorderRadius.all(Radius.circular(8.0));
static const SizedBox m = SizedBox.square(dimension: 16.0);After:
static const EdgeInsets m = .all(16.0);
static const BorderRadius s = .all(Radius.circular(8.0));
static const SizedBox m = .square(dimension: 16.0);This makes the generated code more readable and takes advantage of Dart's latest language features!
🔧 Improved Code Generation
- Refactored
DimensionsGeneratorwith a template configuration system for better maintainability and extensibility - Enhanced code formatting in generated classes with consistent indentation
- Better code organization with improved template structure
🛡️ Better Linter Support
- Added comprehensive
ignore_for_filedirectives to generated files - Generated files now automatically suppress linter warnings
- Cleaner generated code without unnecessary lint errors
📦 Dependency Updates
- Updated minimum SDK version to
>=3.10.0 <4.0.0 - Updated dependencies:
source_gen: ^4.0.2build: ^4.0.2analyzer: 8.1.1flutter_lints: ^6.0.0
⚠️ Breaking Changes
- Minimum SDK version: Now requires Dart SDK
>=3.10.0 <4.0.0 - If you're using an older Dart version, please upgrade before updating to v1.0.0
📝 Migration Guide
Updating from v0.6.0 to v1.0.0:
-
Update your
pubspec.yaml:dependencies: dimengen: ^1.0.0
-
Ensure your Dart SDK version is 3.10.0 or higher:
environment: sdk: '>=3.10.0 <4.0.0'
-
Regenerate your code:
flutter pub get flutter pub run build_runner build --delete-conflicting-outputs
That's it! The generated code will automatically use the new dot shorthands syntax.
🙏 Contributors
Thank you to all contributors who made this release possible:
📚 Full Changelog
See CHANGELOG.md for the complete list of changes.
🔗 Links
Installation:
dart pub add dimengen
dart pub add --dev build_runnerHappy coding! 🎨
v0.6.0
v0.5.0
v0.4.0
What's Changed
- Generation of Non-Static Fields with Double and Integer Values by @warioddly in #3
New Contributors
- @warioddly made their first contribution in #3
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Full Changelog: v0.2.1...v0.3.0
v0.2.1
Full Changelog: v0.2.0...v0.2.1
v0.2.0
v0.1.1
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Full Changelog: https://github.com/warioddly/dimengen/commits/v0.1.0