ctaSBold static method
Implementation
static TextStyle ctaSBold(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeCtaS,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.mobileLineHeightCtaS / AppTypography.mobileFontSizeCtaS,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeCtaS,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.tabletLineHeightCtaS / AppTypography.tabletFontSizeCtaS,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeCtaS,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.desktopLineHeightCtaS / AppTypography.desktopFontSizeCtaS,
color: color ?? Colors.black,
);
}
}