File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ class __ViewState extends State<_View> with SingleTickerProviderStateMixin {
366366 Center (
367367 child: Padding (
368368 padding: EdgeInsets .symmetric (
369- vertical: dynamicSize.height * 2.5 ,
369+ vertical: dynamicSize.height,
370370 horizontal: dynamicSize.width * 7 ,
371371 ),
372372 child: SingleChildScrollView (
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ class InputDeco {
3131 return InputDecoration (
3232 contentPadding: loginTheme.inputPadding ??
3333 EdgeInsets .symmetric (
34- vertical: _dynamicSize.height * (loginTheme.isLandscape ? 3.3 : 3 ),
34+ vertical:
35+ _dynamicSize.height * (loginTheme.isLandscape ? 3.3 : 2.6 ),
3536 ).copyWith (
3637 right: _dynamicSize.width *
3738 (paddingFactor ?? (loginTheme.isLandscape ? 1 : 3 )),
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ class DynamicSize {
103103 /// Low-medium bottom padding.
104104 EdgeInsets get lowMedBottomPadding => EdgeInsets .only (bottom: lowMedHeight);
105105
106+ /// Low bottom padding.
107+ EdgeInsets get lowBottomPadding => EdgeInsets .only (bottom: lowHeight);
108+
106109 /// Maximum height of the screen.
107110 double get maxPossibleHeight => _mediaQuery.size.height;
108111
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ class _FormState extends State<_Form> {
303303 alignment: WrapAlignment .center,
304304 crossAxisAlignment: WrapCrossAlignment .center,
305305 spacing: context.read <LoginTheme >().formElementsSpacing ??
306- dynamicSize.height * (loginTheme.isLandscape ? 2.2 : 1.5 ),
306+ dynamicSize.height * (loginTheme.isLandscape ? 2.2 : 1.2 ),
307307 children: _formElements (auth, loginTheme),
308308 ),
309309 ),
@@ -384,7 +384,7 @@ class _ForgotPassword extends StatelessWidget {
384384 padding: loginTheme.forgotPasswordPadding ??
385385 (isLandscape
386386 ? dynamicSize.lowTopPadding
387- : dynamicSize.lowMedBottomPadding ),
387+ : dynamicSize.lowBottomPadding ),
388388 child: BaseTextButton (
389389 text: context.read <LoginTexts >().forgotPassword,
390390 style: _defaultStyle (context, isLandscape)
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class _Title extends StatelessWidget {
1010 final LoginTheme loginTheme = context.watch <LoginTheme >();
1111 return Padding (
1212 padding: loginTheme.titlePadding ??
13- EdgeInsets .symmetric (vertical: DynamicSize (context).height),
13+ EdgeInsets .symmetric (vertical: DynamicSize (context).height * . 8 ),
1414 child: BaseText (
1515 context.select <Auth , bool >((Auth auth) => auth.isReverse)
1616 ? loginTexts.welcomeBack
@@ -56,11 +56,11 @@ class _Logo extends StatelessWidget {
5656 return Container (
5757 constraints: BoxConstraints .tight (loginTheme.logoSize ??
5858 Size .fromHeight (
59- dynamicSize.responsiveSize * (loginTheme.isLandscape ? 30 : 26 ))),
59+ dynamicSize.responsiveSize * (loginTheme.isLandscape ? 30 : 25 ))),
6060 padding: loginTheme.logoPadding ??
6161 EdgeInsets .symmetric (
6262 vertical:
63- dynamicSize.height * (loginTheme.isLandscape ? 2.8 : 1 )),
63+ dynamicSize.height * (loginTheme.isLandscape ? 2.8 : . 8 )),
6464 child: logo,
6565 );
6666 }
You can’t perform that action at this time.
0 commit comments