icon_large6 method
Implementation
double icon_large6({String? pageName, bool? isStatic}) {
late double fontSize;
if ((isStatic == null &&
isStaticDefault == null &&
Get.find<AppSettings>().properties.screenMode ==
ScreenMode.mobile) ||
(isStatic == null && isStaticDefault == false) ||
isStatic == false) {
double ratio1 = pageName == null
? _sizeIconRatios["large"]!
: getPageDynamicIconSizes(pageName, SizeType.large);
double ratio2 = pageName == null
? _sizeIconRatios["mega"]!
: getPageDynamicIconSizes(pageName, SizeType.mega);
double dif = (ratio2 - ratio1);
if (dif > ratio1) {
dif = ratio1;
}
fontSize = calculateRatio(ratio1, dif, 6);
} else {
double fontSize1 = pageName == null
? _staticSizes["large"]!
: getPageStaticIconSized(pageName, SizeType.large);
double fontSize2 = pageName == null
? _staticSizes["mega"]!
: getPageStaticIconSized(pageName, SizeType.mega);
double dif = (fontSize2 - fontSize1);
if (dif > fontSize1) {
dif = fontSize1;
}
fontSize = calculateFontsize(fontSize1, dif, 6);
}
return fontSize;
}