style_generator_annotation 0.1.4
style_generator_annotation: ^0.1.4 copied to clipboard
The Annotations for style_generator to generate ThemeExtensions
This package requires style_generator to be a dependency to build code. Docs and Examples can be found there.
Getting started #
dart pub add style_generator_annotation
dart pub add dev:style_generator
dart pub add dev:build_runner
or the same in one line:
dart pub add style_generator_annotation dev:style_generator dev:build_runner
For even easier generation, use the Style Generator Templates for Flutter Plugin for Android Studio
Annotations #
- Style and StyleKey (for generating ThemeExtension classes)
- CopyWith and CopyWithKey (for generating standalone CopyWith Extensions or Mixins)