extension_theme_generator 1.1.3
extension_theme_generator: ^1.1.3 copied to clipboard
Code generator for working with extensions in ThemeData
1.1.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