cssFromThemeData method

void cssFromThemeData(
  1. CssStyleDeclaration cssStyle,
  2. ThemeData theme
)

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,
    );
  }
}