fromThemeData static method

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

Implementation

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