Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg committed Nov 24, 2023
1 parent 358d1a3 commit b8867b4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions frontend/mgramseva/lib/routing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ class Routing {
Map<String, dynamic>? query = uri.queryParameters;
String? path = uri.path;
if (kIsWeb) {
if (settings.name == Routes.PRIVACY_POLICY || settings.name == Routes.PRIVACY_POLICY_S) {
bool q = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType:Routes.PRIVACY_POLICY,showLeading: q),
settings: RouteSettings(name: Routes.PRIVACY_POLICY));
}
if (settings.name == Routes.TERMS_OF_USE || settings.name == Routes.TERMS_OF_USE_S) {
bool q = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType:Routes.TERMS_OF_USE,showLeading: q),
settings: RouteSettings(name: Routes.TERMS_OF_USE));
}
if (Routes.POST_PAYMENT_FEED_BACK == path && settings.arguments == null) {
Map localQuery;
String routePath;
Expand Down Expand Up @@ -359,23 +371,15 @@ class Routing {
builder: (_) => Reports(),
settings: RouteSettings(name: Routes.REPORTS));
case Routes.PRIVACY_POLICY:
bool? args = settings.arguments==null?false:settings.arguments as bool;
bool args = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType:Routes.PRIVACY_POLICY,showLeading: args),
settings: RouteSettings(name: Routes.PRIVACY_POLICY));
case Routes.TERMS_OF_USE:
bool? args = settings.arguments==null?false:settings.arguments as bool;
bool args = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType: Routes.TERMS_OF_USE,showLeading: args),
settings: RouteSettings(name: Routes.TERMS_OF_USE));
case Routes.PRIVACY_POLICY_S:
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType:Routes.PRIVACY_POLICY,showLeading: false),
settings: RouteSettings(name: Routes.PRIVACY_POLICY));
case Routes.TERMS_OF_USE_S:
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType: Routes.TERMS_OF_USE,showLeading: false),
settings: RouteSettings(name: Routes.TERMS_OF_USE));

case Routes.SEARCH_CONSUMER_RESULT:
if (settings.arguments == null) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/mgramseva/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mgramseva",
"version": "1.2.14",
"version": "1.2.15",
"license": "egov"
}

0 comments on commit b8867b4

Please sign in to comment.