fromThemeData static method

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

Implementation

static Map<String, Style> fromThemeData(ThemeData theme) => {
  'h1': Style.fromTextStyle(theme.textTheme.headlineLarge!),
  'h2': Style.fromTextStyle(theme.textTheme.headlineMedium!),
  'h3': Style.fromTextStyle(theme.textTheme.headlineSmall!),
  'h4': Style.fromTextStyle(theme.textTheme.titleLarge!),
  'h5': Style.fromTextStyle(theme.textTheme.titleMedium!),
  'h6': Style.fromTextStyle(theme.textTheme.titleSmall!),
  'body': Style.fromTextStyle(theme.textTheme.bodyMedium!),
};