extension_theme_generator 1.1.2
extension_theme_generator: ^1.1.2 copied to clipboard
Code generator for working with extensions in ThemeData
1.1.2 #
Added #
-
Support for
useFinal
parameter inTextStyleAnnotation
Introduced theuseFinal
optional parameter to theTextStyleAnnotation
annotation. This parameter allows you to control whether the generated fields should be marked asfinal
.useFinal
Parameter:- If set to
true
, the generated fields will use thefinal
keyword, making them immutable after initialization. - If set to
false
, thefinal
keyword 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