getPageDynamicIconSizes method
Implementation
double getPageDynamicIconSizes(String pageName, SizeType type) {
switch (type) {
case SizeType.small:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.icon_small_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_small_ratio!
: _sizeIconRatios["small"]!;
case SizeType.medium:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.icon_medium_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_medium_ratio!
: _sizeIconRatios["medium"]!;
case SizeType.large:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.icon_large_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_large_ratio!
: _sizeIconRatios["large"]!;
case SizeType.mega:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>()
.getPageFonts(pageName)!
.icon_mega_ratio !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_mega_ratio!
: _sizeIconRatios["mega"]!;
}
}