getPageDynamicFonts method
Implementation
double getPageDynamicFonts(String pageName, SizeType type) {
switch (type) {
case SizeType.small:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.text_small_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.text_small_ratio!
: _sizeRatios["small"]!;
case SizeType.medium:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.text_medium_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.text_medium_ratio!
: _sizeRatios["medium"]!;
case SizeType.large:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.text_large_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.text_large_ratio!
: _sizeRatios["large"]!;
case SizeType.mega:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.text_mega_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.text_mega_ratio!
: _sizeRatios["mega"]!;
}
}