textStyle static method

TextTheme textStyle(
  1. bool dark
)

Implementation

static TextTheme textStyle(bool dark) {
  final color = textColor(dark);
  Pen.write("Dark: $dark. Font color: ${color.value}");
  return GoogleFonts.poppinsTextTheme().copyWith(
    displayLarge: TextStyle(color: color),
    displayMedium: TextStyle(color: color),
    displaySmall: TextStyle(color: color),
    headlineLarge: TextStyle(color: color),
    headlineMedium: TextStyle(color: color),
    headlineSmall: TextStyle(color: color),
    titleLarge: TextStyle(color: color),
    titleMedium: TextStyle(color: color),
    titleSmall: TextStyle(color: color),
    bodyLarge: TextStyle(color: color),
    bodyMedium: TextStyle(color: color),
    bodySmall: TextStyle(color: color),
    labelLarge: TextStyle(color: color),
    labelMedium: TextStyle(color: color),
    labelSmall: TextStyle(color: color),
  );
}