From 162a1e5fa8433346fad6679f7058551a7bda378b Mon Sep 17 00:00:00 2001 From: Kalonkarthik Date: Thu, 10 Apr 2025 15:54:23 +0530 Subject: [PATCH] Terms&Conditions --- lib/config/my_router.dart | 9 +++++---- .../Screens/auth_verification/registration.dart | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/config/my_router.dart b/lib/config/my_router.dart index 52e6906b..7cf89322 100644 --- a/lib/config/my_router.dart +++ b/lib/config/my_router.dart @@ -504,14 +504,12 @@ final GoRouter router = GoRouter( ), ), GoRoute( - path: '/terms&conditions', + path: '/termsandconditions', builder: (context, state) => TermsOfUse(), - //builder: (context, state) => LoginRoute(), ), GoRoute( path: '/privacy_policy', builder: (context, state) => PrivacyPolicy(), - //builder: (context, state) => LoginRoute(), ), // Drawer Routers @@ -668,7 +666,10 @@ final GoRouter router = GoRouter( if (state.uri.path == '/SessionCheckScreen' || state.uri.path == '/login' || state.uri.path == '/register' || - state.uri.path == '/forgot-password/:email') { + state.uri.path == '/forgot-password/:email'|| + state.uri.path == '/termsandconditions'|| + state.uri.path == '/privacy_policy' + ) { return null; } diff --git a/lib/presentation/Screens/auth_verification/registration.dart b/lib/presentation/Screens/auth_verification/registration.dart index 0c885f53..88daf83d 100644 --- a/lib/presentation/Screens/auth_verification/registration.dart +++ b/lib/presentation/Screens/auth_verification/registration.dart @@ -1087,7 +1087,7 @@ class _RegisterScreenState extends ConsumerState { TapGestureRecognizer() ..onTap = () => context.push( - '/terms&conditions'), + '/termsandconditions'), text: AppLocalizations .of(context)! .terms_conditions,