h2 static method

TextStyle h2({
  1. FontWeight fontWeight = FontWeight.bold,
  2. Color? color,
  3. bool allowFontScaling = false,
})

Headline 2 text style

Implementation

static TextStyle h2({
  FontWeight fontWeight = FontWeight.bold,
  Color? color,
  bool allowFontScaling = false,
}) {
  return style(
    fontSize: ScreenUtil.instance.isPhone ? 24 : 30,
    fontWeight: fontWeight,
    color: color,
    allowFontScaling: allowFontScaling,
  );
}