updateFonts method
Implementation
void updateFonts(BuildContext context, {bool? staticSize}) {
_context = context;
double width = MediaQuery.of(context).size.width;
double height = MediaQuery.of(context).size.height;
//double width = window.physicalSize.width;
//double height = window.physicalSize.height;
Get.find<AppSettings>().screenConfiguration(context);
_appWidth = width;
_appHeight = height;
_totalSize = _appWidth + _appHeight;
if (!Get.find<PageManager>().pageChanged) {
update();
Get.find<AppSettings>().update();
} else {
Get.find<PageManager>().pageChanged = false;
}
}