cssFromThemeData method
Implementation
void cssFromThemeData(html.CssStyleDeclaration cssStyle, ThemeData theme) {
final bodyText = theme.textTheme.bodyText2;
if (bodyText != null) {
cssFromTextStyle(cssStyle, bodyText);
}
if (cssStyle.backgroundColor == '') {
cssStyle.backgroundColor = cssColor(
theme.scaffoldBackgroundColor,
);
}
}