theme_code_gen 1.1.0
theme_code_gen: ^1.1.0 copied to clipboard
Builder (code generator) to create ThemeExtension classes from your Color/TextStyle definitions.
theme_code_gen #
Builder for generating ThemeExtension classes.
Important: annotations live in a separate package:
theme_code_gen_annotations(dependency)theme_code_gen(dev_dependency)
See theme_code_gen_annotations README for the full usage example.
Typical setup #
pubspec.yaml:
dependencies:
theme_code_gen_annotations: ^0.1.1
dev_dependencies:
build_runner: ^2.4.0
theme_code_gen: ^0.1.1
Run:
dart run build_runner build