added size utils to recoverPassword

This commit is contained in:
2025-12-12 13:42:06 +01:00
parent 098217f47a
commit 2e3681d36d
7 changed files with 60 additions and 47 deletions

View File

@@ -69,7 +69,9 @@ class SizeUtils {
static bool get isMediumScreen => physicalAspectRatioHeight <= 18.0;
static bool get isXLScreen => physicalAspectRatioHeight >= 20.0;
static bool get isBigScreen => physicalAspectRatioHeight <= 20.0;
static bool get isXLScreen => physicalAspectRatioHeight >= 21.5;
static Size get screenSize => Size(width, height);
@@ -81,7 +83,8 @@ class SizeUtils {
}) {
if (isSmallerScreen) return small;
if (isMediumScreen) return medium ?? small;
if (isXLScreen && xl != null) return xl;
if (isBigScreen) return big;
if (isXLScreen) return xl ?? big;
return big;
}