Skip to content

v1.0.0

Latest

Choose a tag to compare

@warioddly warioddly released this 15 Nov 17:15
· 2 commits to main since this release
562dee1

🎉 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! 🎨