Skip to content

Commit 9bbdf53

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 3d1875f commit 9bbdf53

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
@@ -436,12 +436,12 @@ class _LoginPageState extends State<LoginPage> {
436436
: null),
437437
body: SafeArea(
438438
minimum: const EdgeInsets.symmetric(horizontal: 8),
439-
top: false,
440439
bottom: false,
441440
child: Center(
442441
child: SingleChildScrollView(
442+
padding: const EdgeInsets.only(top: 8),
443443
child: SafeArea(
444-
minimum: const EdgeInsets.symmetric(vertical: 8),
444+
minimum: const EdgeInsets.only(bottom: 8),
445445
// TODO also detect vertical scroll gestures that start on the
446446
// left or the right of this box
447447
child: ConstrainedBox(

0 commit comments

Comments
 (0)