sign up page scroll fix
This commit is contained in:
@@ -12,6 +12,7 @@ class SignUpFormContent extends StatelessWidget {
|
||||
final bool autoValidateMode;
|
||||
final VoidCallback onSignUp;
|
||||
final VoidCallback onLogin;
|
||||
final double maxWidth = 500;
|
||||
|
||||
const SignUpFormContent({
|
||||
required this.formKey,
|
||||
@@ -26,35 +27,33 @@ class SignUpFormContent extends StatelessWidget {
|
||||
Widget build(BuildContext context) => Align(
|
||||
alignment: Alignment.center,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 500, maxHeight: 700),
|
||||
constraints: BoxConstraints(maxWidth: maxWidth),
|
||||
child: Card(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: onLogin,
|
||||
icon: Icon(Icons.arrow_back),
|
||||
),
|
||||
],
|
||||
),
|
||||
ConstrainedForm(
|
||||
formKey: formKey,
|
||||
autovalidateMode: autoValidateMode
|
||||
? AutovalidateMode.onUserInteraction
|
||||
: AutovalidateMode.disabled,
|
||||
children: [
|
||||
SignUpFormFields(controllers: controllers),
|
||||
SignUpButtonsRow(
|
||||
onLogin: onLogin,
|
||||
signUp: onSignUp,
|
||||
isEnabled: true,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: onLogin,
|
||||
icon: Icon(Icons.arrow_back),
|
||||
),
|
||||
],
|
||||
),
|
||||
ConstrainedForm(
|
||||
formKey: formKey,
|
||||
autovalidateMode: autoValidateMode
|
||||
? AutovalidateMode.onUserInteraction
|
||||
: AutovalidateMode.disabled,
|
||||
children: [
|
||||
SignUpFormFields(controllers: controllers),
|
||||
SignUpButtonsRow(
|
||||
onLogin: onLogin,
|
||||
signUp: onSignUp,
|
||||
isEnabled: true,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user