theme_extensions_builder 6.0.0-dev.3
theme_extensions_builder: ^6.0.0-dev.3 copied to clipboard
Code generator for Flutter's 3.0 ThemeExtension classes. theme_extensions_builder generator helps to minimize the required boilerplate code.
6.0.0-dev.3 #
- Fixed: static
lerp,mergemethods.
6.0.0-dev.2 #
- Fixed: static
lerpreturn type to non-nullable
6.0.0-dev.1 #
- Updated: dependencies.
- Added:
lerpDurationproperty. - Added:
ThemeGenannotation for theme generation.
5.1.1 #
- Bug Fix: Resolved an issue in the
Object.hashAllimplementation that caused incorrect hash code generation when a theme extension contained more than 20 fields. - Dependency Updates: Updated
buildandsource_gendependencies 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_builderlibrary 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
@ThemeExtensionAnnotation Property: ThecontextAccessorNameproperty has been added to the@ThemeExtensionsannotation, allowing you to customize the accessor name for your theme extension onBuildContext. -
Automatic
lerpMethod Generation: The generator now automatically createslerpmethods fordoubleand otherThemeExtensiontypes, simplifying their use in animations. -
Optimized lerp for non-interpolated types:
lerpmethod generation for types that do not have alerpmethod now uses a ternary operator (t < 0.5 ? value : otherValue). This ensures a more efficient and predictable transition between values.
Deprecations #
_$ThemeExtensionMixinis Deprecated: To support multiple extensions per file, the use ofwith _$ThemeExtensionMixinhas been deprecated. Please use the newly generated mixinwith _\$[ClassName]Mixininstead.
5.0.0 #
- Updated: dependencies.
4.0.1 #
- Updated: dependencies.
- Added: DartFormatter.
- Fix: element type.
4.0.0 #
- Updated: dependencies. Min sdk: 3.6.0
3.1.0 #
- Updated: dependencies. Min sdk: 3.3.0
3.0.1 #
- Fixed: dependencies. Thanks felix-barz-brickmakers!
3.0.0 #
- Updated: dependencies. Min sdk: 3.0.0
2.0.1+3 #
- Updated: for scores
2.0.1+2 #
- Updated: readme, doc
2.0.1+1 #
- Updated: readme
2.0.1 #
- Updated:
theme_extensions_builder_annotation: ^2.0.0
2.0.0 #
- Breaking changes: rename build_extensions from .g.dart to .g.theme.dart (issue)
- Updated: analyzer: ">=4.6.0 <6.0.0"
1.0.1 #
- Added: Support for types that do not implement method lerp
1.0.0+1 #
- Updated: for scores
1.0.0 #
- Initial release.