captionSemibold static method
Implementation
static TextStyle captionSemibold(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeCaption,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.mobileLineHeightCaption / AppTypography.mobileFontSizeCaption,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeCaption,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.tabletLineHeightCaption / AppTypography.tabletFontSizeCaption,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeCaption,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.desktopLineHeightCaption / AppTypography.desktopFontSizeCaption,
color: color ?? Colors.black,
);
}
}