theme_extensions_builder 7.0.1
theme_extensions_builder: ^7.0.1 copied to clipboard
Code generator for Flutter's 3.0 ThemeExtension classes. theme_extensions_builder generator helps to minimize the required boilerplate code.
7.0.1 #
- Improvement: Updated
==operator to checkruntimeType. - Improvement: Internal variable renaming in generated code to avoid conflicts.
7.0.0 #
- Breaking changes: Removed deprecated
_$ThemeExtensionMixinmixin. Use_$[ClassName]Mixininstead. - New Feature: Added
constructorparameter to@ThemeExtensionsand@ThemeGenannotations, allowing you to specify a custom constructor name. - Improvement: Added support for inheriting fields from superclasses in both
@ThemeExtensionsand@ThemeGengenerators. - Improvement: Optimized equality checks (
==operator) to use type checking withis!instead ofruntimeTypecomparison. - Improvement: Added
==andhashCodeimplementations toFieldSymbolclass for better comparison support. - Updated: Dependencies to latest versions.
- Fixes: Various bug fixes and improvements - issues/27, issues/28, Special thanks to nank1ro! for finding and reporting issues.
6.0.1 #
- Fixed:
lerpDuration$,lerpDouble$calculation in case of null values.
6.0.0 #
- 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.