Feat: Add documentation to generated props
Closed this issue · 1 comments
jtdLab commented
Is it possible to document the properties in the generated .tailor file?
For example
@tailor
class _$BoxTheme {
/// Some documentation foo bar
static List<Color> backgroundColor = [
Colors.red,
Colors.blue,
];
}
should lead to
class BoxTheme extends ThemeExtension<BoxTheme> {
const BoxTheme({
required this.backgroundColor,
});
/// Some documentation foo bar
final Color backgroundColor;
/// ...
}
Rongix commented
Hey, thanks for the feature proposal, we've worked on this issue some time ago and it is pending for the next release
#51
If you want to try it now it's available on the develop branch:
dev_dependencies:
theme_tailor:
git:
url: https://github.com/Iteo/theme_tailor.git
path: packages/theme_tailor
ref: develop