diphylleiaTextTheme static method
Applies the Ubuntu font family from Google Fonts to every
TextStyle in the given textTheme.
See:
Implementation
static TextTheme diphylleiaTextTheme([TextTheme? textTheme]) {
textTheme ??= ThemeData.light().textTheme;
return TextTheme(
displayLarge: diphylleia(textStyle: textTheme.displayLarge),
displayMedium: diphylleia(textStyle: textTheme.displayMedium),
displaySmall: diphylleia(textStyle: textTheme.displaySmall),
headlineLarge: diphylleia(textStyle: textTheme.headlineLarge),
headlineMedium: diphylleia(textStyle: textTheme.headlineMedium),
headlineSmall: diphylleia(textStyle: textTheme.headlineSmall),
titleLarge: diphylleia(textStyle: textTheme.titleLarge),
titleMedium: diphylleia(textStyle: textTheme.titleMedium),
titleSmall: diphylleia(textStyle: textTheme.titleSmall),
bodyLarge: diphylleia(textStyle: textTheme.bodyLarge),
bodyMedium: diphylleia(textStyle: textTheme.bodyMedium),
bodySmall: diphylleia(textStyle: textTheme.bodySmall),
labelLarge: diphylleia(textStyle: textTheme.labelLarge),
labelMedium: diphylleia(textStyle: textTheme.labelMedium),
labelSmall: diphylleia(textStyle: textTheme.labelSmall),
);
}