Registration Page toggle position adjusted & pink background removed during scroll
This commit is contained in:
parent
0b0f7ca788
commit
99348f3d93
@ -336,8 +336,8 @@ final GoRouter router = GoRouter(
|
|||||||
routes: [
|
routes: [
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: '/',
|
path: '/',
|
||||||
//builder: (context, state) => LoginRoute(),
|
builder: (context, state) => LoginRoute(),
|
||||||
builder: (context, state) => RegisterScreen(),
|
|
||||||
),
|
),
|
||||||
// GoRoute(
|
// GoRoute(
|
||||||
// path: '/',
|
// path: '/',
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -591,14 +591,16 @@ class LoginRoute extends HookConsumerWidget {
|
|||||||
height: 40,
|
height: 40,
|
||||||
);
|
);
|
||||||
final screenWidth = MediaQuery.of(context).size.width;
|
final screenWidth = MediaQuery.of(context).size.width;
|
||||||
|
|
||||||
final listViewHorizontalPadding =
|
final listViewHorizontalPadding =
|
||||||
screenWidth < 700 ? 30 : 30 + (screenWidth - 700) / 2;
|
screenWidth < 700 ? 30 : 30 + (screenWidth - 700) / 2;
|
||||||
final scaffoldBody = ListView(
|
final scaffoldBody = ListView(
|
||||||
padding: EdgeInsets.symmetric(
|
// padding: EdgeInsets.symmetric(
|
||||||
horizontal: listViewHorizontalPadding.toDouble(),
|
// horizontal: listViewHorizontalPadding.toDouble(),
|
||||||
),
|
// ),
|
||||||
children: [
|
children: [
|
||||||
36.verticalSpace,
|
10.verticalSpace,
|
||||||
|
|
||||||
Align(
|
Align(
|
||||||
alignment: AlignmentDirectional.topEnd,
|
alignment: AlignmentDirectional.topEnd,
|
||||||
child: MyToggle(
|
child: MyToggle(
|
||||||
@ -613,15 +615,35 @@ class LoginRoute extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
16.verticalSpace,
|
16.verticalSpace,
|
||||||
helloAndPleaseLoginTexts,
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(
|
||||||
|
horizontal: listViewHorizontalPadding.toDouble(),
|
||||||
|
),
|
||||||
|
child: helloAndPleaseLoginTexts,
|
||||||
|
),
|
||||||
42.verticalSpace,
|
42.verticalSpace,
|
||||||
form,
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(
|
||||||
|
horizontal: listViewHorizontalPadding.toDouble(),
|
||||||
|
),
|
||||||
|
child: form,
|
||||||
|
),
|
||||||
15.verticalSpace,
|
15.verticalSpace,
|
||||||
dontHaveAnAccountRegisterBtn,
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(
|
||||||
|
horizontal: listViewHorizontalPadding.toDouble(),
|
||||||
|
),
|
||||||
|
child: dontHaveAnAccountRegisterBtn,
|
||||||
|
),
|
||||||
20.verticalSpace,
|
20.verticalSpace,
|
||||||
// continueAsGuestBtn,
|
// continueAsGuestBtn,
|
||||||
95.verticalSpace,
|
95.verticalSpace,
|
||||||
fcscBanner,
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(
|
||||||
|
horizontal: listViewHorizontalPadding.toDouble(),
|
||||||
|
),
|
||||||
|
child: fcscBanner,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
// final bgScaffold = Scaffold(
|
// final bgScaffold = Scaffold(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user