bodySmallSemibold static method

TextStyle bodySmallSemibold(
  1. BuildContext context, {
  2. String? fontFamily,
  3. Color? color,
})

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,
      );
  }
}