h2 static method

TextStyle h2(
  1. BuildContext context
)

Returns a responsive H2 text style.

Implementation

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