theme_extensions_builder 5.1.1 copy "theme_extensions_builder: ^5.1.1" to clipboard
theme_extensions_builder: ^5.1.1 copied to clipboard

Code generator for Flutter's 3.0 ThemeExtension classes. theme_extensions_builder generator helps to minimize the required boilerplate code.

5.1.1 #

  • Bug Fix: Resolved an issue in the Object.hashAll implementation that caused incorrect hash code generation when a theme extension contained more than 20 fields.
  • Dependency Updates: Updated build and source_gen dependencies to ensure compatibility with the latest versions.

5.1.0+1 #

  • Fixed typo's

5.1.0 #

New Features #

  • Improved Code Generation: Now using the code_builder library for generating theme extensions, which results in more structured and reliable code.

  • Multiple Extensions per File: Added support for defining multiple theme extensions within a single file.

  • New @ThemeExtension Annotation Property: The contextAccessorName property has been added to the @ThemeExtensions annotation, allowing you to customize the accessor name for your theme extension on BuildContext.

  • Automatic lerp Method Generation: The generator now automatically creates lerp methods for double and other ThemeExtension types, simplifying their use in animations.

  • Optimized lerp for non-interpolated types: lerp method generation for types that do not have a lerp method now uses a ternary operator (t < 0.5 ? value : otherValue). This ensures a more efficient and predictable transition between values.

Deprecations #

  • _$ThemeExtensionMixin is Deprecated: To support multiple extensions per file, the use of with _$ThemeExtensionMixin has been deprecated. Please use the newly generated mixin with _\$[ClassName]Mixin instead.

5.0.0 #

  • Update dependencies.

4.0.1 #

  • Update dependencies.
  • Added DartFormatter.
  • Fix: element type.

4.0.0 #

  • Update dependencies. Min sdk: 3.6.0

3.1.0 #

  • Update dependencies. Min sdk: 3.3.0

3.0.1 #

3.0.0 #

  • Update dependencies. Min sdk: 3.0.0

2.0.2 #

  • Fix generate lerp method issue for MaterialStateProperty

2.0.1+3 #

  • Update for scores

2.0.1+2 #

  • Update readme, doc

2.0.1+1 #

  • Update readme

2.0.1 #

  • theme_extensions_builder_annotation: ^2.0.0

2.0.0 #

  • Breaking changes: rename build_extensions from .g.dart to .g.theme.dart (issue)
  • analyzer: ">=4.6.0 <6.0.0"

1.0.1 #

  • Support for types that do not implement method lerp

1.0.0+1 #

  • Update for scores

1.0.0 #

  • Initial release.
10
likes
140
points
4.81k
downloads

Publisher

verified publisherpro100.dev

Weekly Downloads

Code generator for Flutter's 3.0 ThemeExtension classes. theme_extensions_builder generator helps to minimize the required boilerplate code.

Repository (GitHub)
View/report issues

Topics

#theme #extension #codegen

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

analyzer, build, build_config, code_builder, dart_style, meta, source_gen, theme_extensions_builder_annotation

More

Packages that depend on theme_extensions_builder