fromThemeData static method

Map<String, Style> fromThemeData(
  1. ThemeData theme
)

Implementation

static Map<String, Style> fromThemeData(ThemeData theme) => {
  'h1': Style.fromTextStyle(theme.textTheme.headline1!),
  'h2': Style.fromTextStyle(theme.textTheme.headline2!),
  'h3': Style.fromTextStyle(theme.textTheme.headline3!),
  'h4': Style.fromTextStyle(theme.textTheme.headline4!),
  'h5': Style.fromTextStyle(theme.textTheme.headline5!),
  'h6': Style.fromTextStyle(theme.textTheme.headline6!),
  'body': Style.fromTextStyle(theme.textTheme.bodyText2!),
};