extension_theme_generator 1.3.0
extension_theme_generator: ^1.3.0 copied to clipboard
Code generator for working with extensions in ThemeData
1.3.0 #
Changed #
- Migrated package to support:
- build >=3.0.0 <5.0.0
- source_gen >=3.0.0 <5.0.0
- analyzer >=7.5.9 <9.0.0
- Refactored generators (
ColorsGenerator,TextStyleGenerator) to be compatible with the new analyzer API.
1.2.3 #
1.1.2 #
Added #
-
Support for
useFinalparameter inTextStyleAnnotation
Introduced theuseFinaloptional parameter to theTextStyleAnnotationannotation. This parameter allows you to control whether the generated fields should be marked asfinal.useFinalParameter:- If set to
true, the generated fields will use thefinalkeyword, making them immutable after initialization. - If set to
false, thefinalkeyword will be omitted, allowing fields to be reassigned.
- If set to
Example Usage:
@TextStyleAnnotation(useFinal: true) class MyTextStyles { static TextStyle header = TextStyle(); static TextStyle body = TextStyle(); }
1.0.1 #
- Metadata update
1.0.0 #
- First release