heading1Medium static method
Implementation
static TextStyle heading1Medium(BuildContext context, {String? fontFamily, Color? color}) {
final deviceType = ResponsiveHelper.getDeviceType(context);
switch (deviceType) {
case DeviceType.mobile:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.mobileFontSizeHeading1,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.mobileLineHeightHeading1 / AppTypography.mobileFontSizeHeading1,
color: color ?? Colors.black,
);
case DeviceType.tablet:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.tabletFontSizeHeading1,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.tabletLineHeightHeading1 / AppTypography.tabletFontSizeHeading1,
color: color ?? Colors.black,
);
case DeviceType.desktop:
return TextStyle(
fontFamily: fontFamily ?? AppTypography.fontFamily,
fontSize: AppTypography.desktopFontSizeHeading1,
fontWeight: AppTypography.fontWeightMedium,
height: AppTypography.desktopLineHeightHeading1 / AppTypography.desktopFontSizeHeading1,
color: color ?? Colors.black,
);
}
}