footerBold static method
Implementation
static TextStyle footerBold(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.fontWeightBold,
height: AppTypography.mobileLineHeightFooter / AppTypography.mobileFontSizeFooter,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeFooter,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.tabletLineHeightFooter / AppTypography.tabletFontSizeFooter,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeFooter,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.desktopLineHeightFooter / AppTypography.desktopFontSizeFooter,
color: color ?? Colors.black,
);
}
}