footerSemibold static method

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

Implementation

static TextStyle footerSemibold(BuildContext context, {String? fontFamily, Color? color}) {
  final deviceType = ResponsiveHelper.getDeviceType(context);
  switch (deviceType) {
    case DeviceType.mobile:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.mobileFontSizeFooter,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.mobileLineHeightFooter / AppTypography.mobileFontSizeFooter,
        color: color ?? Colors.black,
      );
    case DeviceType.tablet:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.tabletFontSizeFooter,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.tabletLineHeightFooter / AppTypography.tabletFontSizeFooter,
        color: color ?? Colors.black,
      );
    case DeviceType.desktop:
      return TextStyle(
        fontFamily: fontFamily ?? AppTypography.fontFamily,
        fontSize: AppTypography.desktopFontSizeFooter,
        fontWeight: AppTypography.fontWeightSemibold,
        height: AppTypography.desktopLineHeightFooter / AppTypography.desktopFontSizeFooter,
        color: color ?? Colors.black,
      );
  }
}