Terms&Conditions

This commit is contained in:
Kalonkarthik 2025-04-10 15:54:23 +05:30
parent 24179488a3
commit 162a1e5fa8
2 changed files with 6 additions and 5 deletions

View File

@ -504,14 +504,12 @@ final GoRouter router = GoRouter(
), ),
), ),
GoRoute( GoRoute(
path: '/terms&conditions', path: '/termsandconditions',
builder: (context, state) => TermsOfUse(), builder: (context, state) => TermsOfUse(),
//builder: (context, state) => LoginRoute(),
), ),
GoRoute( GoRoute(
path: '/privacy_policy', path: '/privacy_policy',
builder: (context, state) => PrivacyPolicy(), builder: (context, state) => PrivacyPolicy(),
//builder: (context, state) => LoginRoute(),
), ),
// Drawer Routers // Drawer Routers
@ -668,7 +666,10 @@ final GoRouter router = GoRouter(
if (state.uri.path == '/SessionCheckScreen' || if (state.uri.path == '/SessionCheckScreen' ||
state.uri.path == '/login' || state.uri.path == '/login' ||
state.uri.path == '/register' || 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; return null;
} }

View File

@ -1087,7 +1087,7 @@ class _RegisterScreenState extends ConsumerState<RegisterScreen> {
TapGestureRecognizer() TapGestureRecognizer()
..onTap = () => ..onTap = () =>
context.push( context.push(
'/terms&conditions'), '/termsandconditions'),
text: AppLocalizations text: AppLocalizations
.of(context)! .of(context)!
.terms_conditions, .terms_conditions,