theme_tailor 2.0.0 copy "theme_tailor: ^2.0.0" to clipboard
theme_tailor: ^2.0.0 copied to clipboard

Code generator for Flutter's 3.0 ThemeExtension classes. The generator can create themes and extensions on BuildContext or ThemeData based on the lists of the theme properties

2.0.0 #

  • Add additional way to generate ThemeExtension classes with @TailorMixin / @TailorMixinComponent annotation
  • Add support for required and optional constructor parameters for classes annotated with @TailorMixin or @TailorComponent
  • Required version of theme_tailor_annotation is 2.0.0

1.2.0 #

  • Added generateStaticGetters property to Tailor and TailorComponent to support hot-reload
  • Build configuration. It is possible to configure themeGetter, requireStaticConst and generateStaticGetters annotation properties within the build.yaml with: theme_getter and require_static_const (all keys and values for enums are snake_case)
  • Required version of theme_tailor_annotation is 1.2.0

1.1.2 #

  • Fix: DiagnosticableTreeMixin not being generated if package:flutter/foundation.dart was proceeded by other Flutter import

1.1.1 #

  • Update documentation
  • Fix: required version of theme_tailor_annotation is 1.1.1

1.1.0 #

  • Generate constant themes if possible
  • Nullable fields are no longer required in a generated theme constructor
  • Theme fields are now ordered alphabetically in generated code
  • Update examples and documentation for good / bad practices
  • Increase minimum analyzer version to 5.2
  • Fix debug fill properties not generated
  • Fix the case when some of the properties were generated as dynamic for Flutter types like Color / TextStyle
  • Add package logo to the pub.dev

1.0.8 #

  • Fix analyzer constraints
  • Improve documentation,

1.0.7 #

  • Bump analyzer version

1.0.6 #

  • Fix compatibility issues with Flutter 3.3.0

1.0.5 #

  • Fix generator not loading default theme names if they were not specified in the annotation or build.yaml
  • Improve documentation

1.0.4 #

  • Build configuration. It is possible to configure themes within the build.yaml
  • Fix name collision when theme class contains themes field
  • Fix the bug where the generator could not handle encoders extending generic type encoders
  • Empty theme class will now generate with const constructor
  • Add support for typedefs

1.0.3 #

  • Improve documentation,
  • Fix the broken readme link
  • Add branding materials

1.0.2 #

  • Improve documentation,
  • Add support for json_serializable,
  • Add support for nested the extension with @themeExtension annotation,
  • Add support for Flutter's DiagnosticableTreeMixin (debugFillProperties)
  • Generated class will overwrite the hashCode and == operator. The equality operator will deeply compare collections in the class

1.0.1 #

  • Fix README.md

1.0.0 #

  • Initial version of theme_tailor library
153
likes
0
pub points
88%
popularity

Publisher

verified publisheriteo.com

Code generator for Flutter's 3.0 ThemeExtension classes. The generator can create themes and extensions on BuildContext or ThemeData based on the lists of the theme properties

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

analyzer, build, build_config, collection, json_annotation, meta, source_gen, source_gen_test, source_helper, theme_tailor_annotation

More

Packages that depend on theme_tailor