TF-518 Apply new UI for login in mobile

This commit is contained in:
Dat PHAM HOANG
2022-05-04 20:15:40 +07:00
committed by Dat H. Pham
parent 0932cf0185
commit cc66d141d4
13 changed files with 465 additions and 99 deletions
@@ -3,6 +3,8 @@ import 'package:get/get.dart';
class ResponsiveUtils {
final int heightShortest = 600;
final int minDesktopWidth = 1200;
final int minTabletWidth = 600;
final int minTabletLargeWidth = 900;
@@ -51,4 +53,8 @@ class ResponsiveUtils {
isMobile(context) ? _loginTextFieldWidthSmallScreen : _loginTextFieldWidthLargeScreen;
double getWidthLoginButton() => _loginButtonWidth;
bool isHeightShortest(BuildContext context) {
return MediaQuery.of(context).size.shortestSide < 600;
}
}