fix: Fixed alignment and spacing when opening keyboard

This commit is contained in:
Jacques 2024-02-06 12:54:08 +01:00
parent c86fa1ca5f
commit f328df84dd

View file

@ -120,8 +120,7 @@ class _AuthScreenState extends State<AuthScreen> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
if (widget.titleWidget != null) widget.titleWidget!, if (widget.titleWidget != null) widget.titleWidget!,
const SizedBox(height: 40), Expanded(
Flexible(
child: ListView( child: ListView(
physics: const ClampingScrollPhysics(), physics: const ClampingScrollPhysics(),
shrinkWrap: true, shrinkWrap: true,
@ -130,6 +129,7 @@ class _AuthScreenState extends State<AuthScreen> {
horizontal: 30.0, horizontal: 30.0,
), ),
children: [ children: [
const SizedBox(height: 40),
for (AuthField field in step.fields) for (AuthField field in step.fields)
Align( Align(
child: Column( child: Column(
@ -145,7 +145,6 @@ class _AuthScreenState extends State<AuthScreen> {
], ],
), ),
), ),
const Spacer(),
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
top: 15.0, top: 15.0,