bodySmallSemibold static method
Implementation
static TextStyle bodySmallSemibold(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeBodySmall,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.mobileLineHeightBodySmall / AppTypography.mobileFontSizeBodySmall,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeBodySmall,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.tabletLineHeightBodySmall / AppTypography.tabletFontSizeBodySmall,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeBodySmall,
fontWeight: AppTypography.fontWeightSemibold,
height: AppTypography.desktopLineHeightBodySmall / AppTypography.desktopFontSizeBodySmall,
color: color ?? Colors.black,
);
}
}