ctaMSemibold static method
Implementation
static TextStyle ctaMSemibold(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeCtaM,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.mobileLineHeightCtaM / AppTypography.mobileFontSizeCtaM,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeCtaM,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.tabletLineHeightCtaM / AppTypography.tabletFontSizeCtaM,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeCtaM,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.desktopLineHeightCtaM / AppTypography.desktopFontSizeCtaM,
color: color ?? Colors.black,
);
}
}