bigHeadingMedium static method
Implementation
static TextStyle bigHeadingMedium(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeBigHeading,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.mobileLineHeightBigHeading / AppTypography.mobileFontSizeBigHeading,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeBigHeading,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.tabletLineHeightBigHeading / AppTypography.tabletFontSizeBigHeading,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeBigHeading,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.desktopLineHeightBigHeading / AppTypography.desktopFontSizeBigHeading,
color: color ?? Colors.black,
);
}
}