h1 static method

TextStyle h1(
  1. BuildContext context
)

Returns a responsive H1 text style.

Implementation

static TextStyle h1(BuildContext context) {
  final (config, textScaler) = _deps(context);
  return TextStyle(
    fontSize: textScaler.scale(config.h1.resolve(context)),
    fontWeight: FontWeight.bold,
  );
}