heroSectionBold static method
Implementation
static TextStyle heroSectionBold(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeHeroSection,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.mobileLineHeightHeroSection / AppTypography.mobileFontSizeHeroSection,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeHeroSection,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.tabletLineHeightHeroSection / AppTypography.tabletFontSizeHeroSection,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeHeroSection,
fontWeight: AppTypography.fontWeightBold,
height: AppTypography.desktopLineHeightHeroSection / AppTypography.desktopFontSizeHeroSection,
color: color ?? Colors.black,
);
}
}