Skip to content

Commit

Permalink
login [nfc]: Express some unconditional padding more transparently
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisbobbe committed Mar 29, 2024
1 parent bb76802 commit edf7496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,12 @@ class _LoginPageState extends State<LoginPage> {
: null),
body: SafeArea(
minimum: const EdgeInsets.symmetric(horizontal: 8),
top: false,
bottom: false,
child: Center(
child: SingleChildScrollView(
padding: const EdgeInsets.only(top: 8),
child: SafeArea(
minimum: const EdgeInsets.symmetric(vertical: 8),
minimum: const EdgeInsets.only(bottom: 8),
// TODO also detect vertical scroll gestures that start on the
// left or the right of this box
child: ConstrainedBox(
Expand Down

0 comments on commit edf7496

Please sign in to comment.