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

privacy #664

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/mgramseva/lib/routers/routers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@ class Routes {
static const String REPORTS = '/home/reports';
static const String PRIVACY_POLICY = '/privacy';
static const String TERMS_OF_USE = '/terms';
static const String PRIVACY_POLICY_S = '/privacy/';
static const String TERMS_OF_USE_S = '/terms/';
}
16 changes: 12 additions & 4 deletions frontend/mgramseva/lib/routing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,22 @@ class Routing {
builder: (_) => Reports(),
settings: RouteSettings(name: Routes.REPORTS));
case Routes.PRIVACY_POLICY:
Object? args = settings.arguments;
bool? args = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType:Routes.PRIVACY_POLICY,showLeading: args==null?false:args as bool,),
builder: (_) => PrivacyAndTerms(pageType:Routes.PRIVACY_POLICY,showLeading: args),
settings: RouteSettings(name: Routes.PRIVACY_POLICY));
case Routes.TERMS_OF_USE:
Object? args = settings.arguments;
bool? args = settings.arguments==null?false:settings.arguments as bool;
return MaterialPageRoute(
builder: (_) => PrivacyAndTerms(pageType: Routes.TERMS_OF_USE,showLeading: args==null?false:args as bool,),
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:
Expand Down
Loading