heading1 static method

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

Implementation

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