fix: 4032 - better paddings for login page (#4037)

* fix: 4032 - better paddings for login page

* fix: 4032 - golden generated png files

* fix: 4032 - hint text on max 2 lines
This commit is contained in:
monsieurtanuki
2023-05-28 18:08:59 +02:00
committed by GitHub
parent e2197d167c
commit c60f2a54c4
23 changed files with 5 additions and 8 deletions

View File

@ -98,6 +98,7 @@ class _SmoothTextFormFieldState extends State<SmoothTextFormField> {
overflow: TextOverflow.ellipsis,
),
hintText: widget.hintText,
hintMaxLines: 2,
border: const OutlineInputBorder(
borderRadius: CIRCULAR_BORDER_RADIUS,
),

View File

@ -95,7 +95,6 @@ class _LoginPageState extends State<LoginPage> with TraceableClientMixin {
final Size size = MediaQuery.of(context).size;
return SmoothScaffold(
extendBodyBehindAppBar: true,
statusBarBackgroundColor: SmoothScaffold.semiTranslucentStatusBar,
contentBehindStatusBar: true,
fixKeyboard: true,
@ -113,9 +112,10 @@ class _LoginPageState extends State<LoginPage> with TraceableClientMixin {
child: Container(
alignment: Alignment.topCenter,
width: double.infinity,
padding: EdgeInsets.symmetric(
horizontal: size.width * 0.15,
vertical: size.width * 0.05,
padding: EdgeInsets.only(
left: size.width * 0.15,
right: size.width * 0.15,
bottom: size.width * 0.05,
),
child: AutofillGroup(
child: Center(
@ -124,10 +124,6 @@ class _LoginPageState extends State<LoginPage> with TraceableClientMixin {
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const SizedBox(
height: LARGE_SPACE * 2,
),
SvgPicture.asset(
'assets/preferences/login.svg',
height: MediaQuery.of(context).size.height * .15,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB