extension_theme_generator 1.1.2 copy "extension_theme_generator: ^1.1.2" to clipboard
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 in TextStyleAnnotation
    Introduced the useFinal optional parameter to the TextStyleAnnotation annotation. This parameter allows you to control whether the generated fields should be marked as final.

    • useFinal Parameter:
      • If set to true, the generated fields will use the final keyword, making them immutable after initialization.
      • If set to false, the final keyword will be omitted, allowing fields to be reassigned.

    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
2
likes
130
points
53
downloads

Publisher

verified publisherkotelnikoff.dev

Weekly Downloads

Code generator for working with extensions in ThemeData

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, build_runner, flutter, source_gen

More

Packages that depend on extension_theme_generator