Typography.standart constructor

Typography.standart({
  1. required Brightness brightness,
  2. Color? color,
})

The default typography.

If color is null, uses Colors.black if brightness is Brightness.dark, otherwise uses Colors.white

Implementation

factory Typography.standart({
  required Brightness brightness,
  Color? color,
}) {
  color ??= brightness == Brightness.light ? Colors.black : Colors.white;
  return Typography(
    header: TextStyle(
      fontSize: 42,
      color: color,
      fontWeight: FontWeight.w300,
    ),
    subheader: TextStyle(
      fontSize: 34,
      color: color,
      fontWeight: FontWeight.w300,
    ),
    title: TextStyle(fontSize: 24, color: color, fontWeight: FontWeight.w600),
    subtitle: TextStyle(
      fontSize: 20,
      color: color,
      fontWeight: FontWeight.normal,
    ),
    base: TextStyle(
      fontSize: 14,
      color: color,
      fontWeight: FontWeight.bold,
    ),
    body: TextStyle(
      fontSize: 14,
      color: color,
      fontWeight: FontWeight.normal,
    ),
    caption: TextStyle(
      fontSize: 12,
      color: color,
      fontWeight: FontWeight.normal,
    ),
  );
}