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(
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;
}

View File

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