Skip to content

Commit edf7496

Browse files
committed
login [nfc]: Express some unconditional padding more transparently
The top of this area will never be in the top inset, since that's consumed by the app bar. So "minimum 8" really just means always 8. So, express that more directly and transparently.
1 parent bb76802 commit edf7496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/login.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,12 @@ class _LoginPageState extends State<LoginPage> {
442442
: null),
443443
body: SafeArea(
444444
minimum: const EdgeInsets.symmetric(horizontal: 8),
445-
top: false,
446445
bottom: false,
447446
child: Center(
448447
child: SingleChildScrollView(
448+
padding: const EdgeInsets.only(top: 8),
449449
child: SafeArea(
450-
minimum: const EdgeInsets.symmetric(vertical: 8),
450+
minimum: const EdgeInsets.only(bottom: 8),
451451
// TODO also detect vertical scroll gestures that start on the
452452
// left or the right of this box
453453
child: ConstrainedBox(

0 commit comments

Comments
 (0)