heading4 static method

TextStyle heading4(
  1. BuildContext context, {
  2. Color? textColor,
})

Implementation

static TextStyle heading4(BuildContext context, {Color? textColor}) {
  return TextStyle(
    fontFamily: fontName,
    package: fontPackage,
    fontFamilyFallback: fontFallbacks,
    fontSize: FontSizes.medium,
    fontWeight: FontWeight.w500,
    color: textColor ?? Theme.of(context).textTheme.titleLarge?.color,
    letterSpacing: letterSpacing,
    height: lineHeight,
  );
}