Registration Page toggle position adjusted & pink background removed during scroll

This commit is contained in:
VINISTAN 2025-02-08 00:27:13 +05:30
parent 0b0f7ca788
commit 99348f3d93
3 changed files with 719 additions and 690 deletions

View File

@ -336,8 +336,8 @@ final GoRouter router = GoRouter(
routes: [
GoRoute(
path: '/',
//builder: (context, state) => LoginRoute(),
builder: (context, state) => RegisterScreen(),
builder: (context, state) => LoginRoute(),
),
// GoRoute(
// path: '/',

File diff suppressed because it is too large Load Diff

View File

@ -591,14 +591,16 @@ class LoginRoute extends HookConsumerWidget {
height: 40,
);
final screenWidth = MediaQuery.of(context).size.width;
final listViewHorizontalPadding =
screenWidth < 700 ? 30 : 30 + (screenWidth - 700) / 2;
final scaffoldBody = ListView(
padding: EdgeInsets.symmetric(
horizontal: listViewHorizontalPadding.toDouble(),
),
// padding: EdgeInsets.symmetric(
// horizontal: listViewHorizontalPadding.toDouble(),
// ),
children: [
36.verticalSpace,
10.verticalSpace,
Align(
alignment: AlignmentDirectional.topEnd,
child: MyToggle(
@ -613,15 +615,35 @@ class LoginRoute extends HookConsumerWidget {
),
),
16.verticalSpace,
helloAndPleaseLoginTexts,
Padding(
padding: EdgeInsets.symmetric(
horizontal: listViewHorizontalPadding.toDouble(),
),
child: helloAndPleaseLoginTexts,
),
42.verticalSpace,
form,
Padding(
padding: EdgeInsets.symmetric(
horizontal: listViewHorizontalPadding.toDouble(),
),
child: form,
),
15.verticalSpace,
dontHaveAnAccountRegisterBtn,
Padding(
padding: EdgeInsets.symmetric(
horizontal: listViewHorizontalPadding.toDouble(),
),
child: dontHaveAnAccountRegisterBtn,
),
20.verticalSpace,
// continueAsGuestBtn,
95.verticalSpace,
fcscBanner,
Padding(
padding: EdgeInsets.symmetric(
horizontal: listViewHorizontalPadding.toDouble(),
),
child: fcscBanner,
),
],
);
// final bgScaffold = Scaffold(