Skip to content

Commit

Permalink
fix: 4032 - better paddings for login page (#4037)
Browse files Browse the repository at this point in the history
* fix: 4032 - better paddings for login page

* fix: 4032 - golden generated png files

* fix: 4032 - hint text on max 2 lines
  • Loading branch information
monsieurtanuki authored May 28, 2023
1 parent e2197d1 commit c60f2a5
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class _SmoothTextFormFieldState extends State<SmoothTextFormField> {
overflow: TextOverflow.ellipsis,
),
hintText: widget.hintText,
hintMaxLines: 2,
border: const OutlineInputBorder(
borderRadius: CIRCULAR_BORDER_RADIUS,
),
Expand Down
12 changes: 4 additions & 8 deletions packages/smooth_app/lib/pages/user_management/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand All @@ -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,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/login_page-amoled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/login_page-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/login_page-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/signup_page-amoled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/signup_page-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/smooth_app/test/users/goldens/signup_page-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c60f2a5

Please sign in to comment.