getPageStaticFonts method

double getPageStaticFonts(
  1. String pageName,
  2. SizeType type
)

Implementation

double getPageStaticFonts(String pageName, SizeType type) {
  switch (type) {
    case SizeType.small:
      return Get.find<PageManager>().getPageFonts(pageName) != null &&
              Get.find<PageManager>().getPageFonts(pageName)!.text_small !=
                  null
          ? Get.find<PageManager>().getPageFonts(pageName)!.text_small!
          : _staticSizes["small"]!;
    case SizeType.medium:
      return Get.find<PageManager>().getPageFonts(pageName) != null &&
              Get.find<PageManager>().getPageFonts(pageName)!.text_medium !=
                  null
          ? Get.find<PageManager>().getPageFonts(pageName)!.text_medium!
          : _staticSizes["medium"]!;
    case SizeType.large:
      return Get.find<PageManager>().getPageFonts(pageName) != null &&
              Get.find<PageManager>().getPageFonts(pageName)!.text_large !=
                  null
          ? Get.find<PageManager>().getPageFonts(pageName)!.text_large!
          : _staticSizes["large"]!;
    case SizeType.mega:
      return Get.find<PageManager>().getPageFonts(pageName) != null &&
              Get.find<PageManager>().getPageFonts(pageName)!.text_mega !=
                  null
          ? Get.find<PageManager>().getPageFonts(pageName)!.text_mega!
          : _staticSizes["mega"]!;
  }
}