TF-2271 Replace string to object for Username & Password

(cherry picked from commit 7958557b9d4787aa5a319267a57b93ccc753c59e)
This commit is contained in:
dab246
2023-11-10 17:05:09 +07:00
committed by Dat Vu
parent 6c6e406879
commit c0bef69435
5 changed files with 13 additions and 20 deletions
@@ -14,10 +14,6 @@ class ResponsiveUtils {
static const int minTabletWidth = 600;
static const int minTabletLargeWidth = 900;
static const double _loginTextFieldWidthSmallScreen = 280.0;
static const double _loginTextFieldWidthLargeScreen = 320.0;
static const double _loginButtonWidth = 240.0;
static const double tabletHorizontalMargin = 120.0;
static const double tabletVerticalMargin = 200.0;
static const double desktopVerticalMargin = 120.0;
@@ -63,11 +59,6 @@ class ResponsiveUtils {
isPortrait(context);
}
double getWidthLoginTextField(BuildContext context) =>
isMobile(context) ? _loginTextFieldWidthSmallScreen : _loginTextFieldWidthLargeScreen;
double getWidthLoginButton() => _loginButtonWidth;
bool isHeightShortest(BuildContext context) {
return MediaQuery.of(context).size.shortestSide < heightShortest;
}