theme_extensions_builder 5.1.1
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
andsource_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: ThecontextAccessorName
property has been added to the@ThemeExtensions
annotation, allowing you to customize the accessor name for your theme extension onBuildContext
. -
Automatic
lerp
Method Generation: The generator now automatically createslerp
methods fordouble
and otherThemeExtension
types, simplifying their use in animations. -
Optimized lerp for non-interpolated types:
lerp
method generation for types that do not have alerp
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 ofwith _$ThemeExtensionMixin
has been deprecated. Please use the newly generated mixinwith _\$[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 #
- Fix dependencies. Thanks felix-barz-brickmakers!
3.0.0 #
- Update dependencies. Min sdk: 3.0.0
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.