ctaLSemibold static method

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

Implementation

static TextStyle ctaLSemibold(BuildContext context, {String? fontFamily, Color? color}) {
  final deviceType = ResponsiveHelper.getDeviceType(context);
  switch (deviceType) {
    case DeviceType.mobile:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.mobileFontSizeCtaL,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.mobileLineHeightCtaL / AppTypography.mobileFontSizeCtaL,
        color: color ?? Colors.black,
      );
    case DeviceType.tablet:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.tabletFontSizeCtaL,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.tabletLineHeightCtaL / AppTypography.tabletFontSizeCtaL,
        color: color ?? Colors.black,
      );
    case DeviceType.desktop:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.desktopFontSizeCtaL,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.desktopLineHeightCtaL / AppTypography.desktopFontSizeCtaL,
        color: color ?? Colors.black,
      );
  }
}