sign up page scroll fix #461

Merged
tech merged 1 commits from SEND046 into main 2026-02-10 15:05:26 +00:00
2 changed files with 48 additions and 36 deletions
Showing only changes of commit c962ac7cbd - Show all commits

View File

@@ -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,9 +27,8 @@ 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(
@@ -57,6 +57,5 @@ class SignUpFormContent extends StatelessWidget {
),
),
),
),
);
}

View File

@@ -7,16 +7,29 @@ class PageWithFooter extends StatelessWidget {
final PreferredSizeWidget? appBar;
final Widget child;
const PageWithFooter({super.key, required this.child, this.appBar});
const PageWithFooter({
super.key,
required this.child,
this.appBar,
});
@override
Widget build(BuildContext context) => Scaffold(
appBar: appBar,
body: Column(
body: LayoutBuilder(
builder: (context, constraints) => SingleChildScrollView(
child: ConstrainedBox(
constraints: BoxConstraints(minHeight: constraints.maxHeight),
child: IntrinsicHeight(
child: Column(
children: [
Expanded(child: child),
FooterWidget(),
],
),
),
),
),
),
);
}