ctaLBold static method
Implementation
static TextStyle ctaLBold(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.fontWeightBold,
height: AppTypography.mobileLineHeightCtaL / AppTypography.mobileFontSizeCtaL,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeCtaL,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.tabletLineHeightCtaL / AppTypography.tabletFontSizeCtaL,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeCtaL,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.desktopLineHeightCtaL / AppTypography.desktopFontSizeCtaL,
color: color ?? Colors.black,
);
}
}