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 28, 2024
1 parent 6ac0536 commit b351c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,9 @@ class LoginPageState extends State<LoginPage> {
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 b351c0b

Please sign in to comment.