large5 method
TextStyle
large5({
- Color? color,
- bool? isBold,
- String? pageName,
- TextDecoration? decoration,
- Color? backgroundColor,
- String? fontFamily,
- FontWeight fontWeight = FontWeight.normal,
- bool? isStatic,
Implementation
TextStyle large5(
{Color? color,
bool? isBold,
String? pageName,
TextDecoration? decoration,
Color? backgroundColor,
String? fontFamily,
FontWeight fontWeight = FontWeight.normal,
bool? isStatic}) {
color ??= Get.find<AppColors>().textColor;
late double fontSize;
if ((isStatic == null &&
isStaticDefault == null &&
Get.find<AppSettings>().properties.screenMode ==
ScreenMode.mobile) ||
(isStatic == null && isStaticDefault == false) ||
isStatic == false) {
double ratio = pageName == null
? _sizeRatios["large"]!
: getPageDynamicFonts(pageName, SizeType.large);
fontSize = ratio * _totalSize;
} else {
fontSize = pageName == null
? _staticSizes["large"]!
: getPageStaticFonts(pageName, SizeType.large);
}
return GoogleFonts.getFont(
fontFamily ??
(pageName != null
? Get.find<PageManager>()
.getPageFontFamily(pageName, SizeType.large)
: defaultFontFamily),
fontSize: fontSize,
color: color,
decoration: decoration,
backgroundColor: backgroundColor,
fontWeight: isBold == null
? fontWeight
: isBold
? FontWeight.bold
: FontWeight.normal);
}