theme_code_gen 0.7.0
theme_code_gen: ^0.7.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.0
dev_dependencies:
build_runner: ^2.4.0
theme_code_gen: ^0.1.0
Run:
flutter pub run build_runner build