Skip to content

Releases: warioddly/dimengen

v1.0.0

15 Nov 17:15
562dee1

Choose a tag to compare

🎉 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 DimensionsGenerator with 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_file directives 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.2
    • build: ^4.0.2
    • analyzer: 8.1.1
    • flutter_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:

  1. Update your pubspec.yaml:

    dependencies:
      dimengen: ^1.0.0
  2. Ensure your Dart SDK version is 3.10.0 or higher:

    environment:
      sdk: '>=3.10.0 <4.0.0'
  3. 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_runner

Happy coding! 🎨

v0.6.0

22 Sep 05:47
b282274

Choose a tag to compare

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

18 Sep 07:10

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

06 Jun 13:50

Choose a tag to compare

What's Changed

  • Generation of Non-Static Fields with Double and Integer Values by @warioddly in #3

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

02 Jun 04:14

Choose a tag to compare

Full Changelog: v0.2.1...v0.3.0

v0.2.1

02 Jun 03:37

Choose a tag to compare

Full Changelog: v0.2.0...v0.2.1

v0.2.0

01 Jun 16:34

Choose a tag to compare

  • Features and improvements
  • Added @take annotation to generate a class with a specified number of properties.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

31 May 20:20

Choose a tag to compare

Full Changelog: v0.1.0...v0.1.1

v0.1.0

31 May 11:44

Choose a tag to compare