TF-2271 Replace string to object for Username & Password
(cherry picked from commit 7958557b9d4787aa5a319267a57b93ccc753c59e)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user