heading3Medium static method

TextStyle heading3Medium(
  1. BuildContext context, {
  2. String? fontFamily,
  3. Color? color,
})

Implementation

static TextStyle heading3Medium(BuildContext context, {String? fontFamily, Color? color}) {
  final deviceType = ResponsiveHelper.getDeviceType(context);
  switch (deviceType) {
    case DeviceType.mobile:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.mobileFontSizeHeading3,
        fontWeight: AppTypography.fontWeightMedium,
        height: AppTypography.mobileLineHeightHeading3 / AppTypography.mobileFontSizeHeading3,
        color: color ?? Colors.black,
      );
    case DeviceType.tablet:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.tabletFontSizeHeading3,
        fontWeight: AppTypography.fontWeightMedium,
        height: AppTypography.tabletLineHeightHeading3 / AppTypography.tabletFontSizeHeading3,
        color: color ?? Colors.black,
      );
    case DeviceType.desktop:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.desktopFontSizeHeading3,
        fontWeight: AppTypography.fontWeightMedium,
        height: AppTypography.desktopLineHeightHeading3 / AppTypography.desktopFontSizeHeading3,
        color: color ?? Colors.black,
      );
  }
}