add routes "/privacy-policy" & "/terms-of-service" for internal and external routes

This commit is contained in:
2024-12-06 13:51:15 +02:00
parent 718345e1c0
commit fdbed2e5d1

View File

@@ -1,3 +1,5 @@
import 'package:Mzansi_Innovation_Hub/mih_packages/mih_policy_tos/mih_privacy_polocy.dart';
import 'package:Mzansi_Innovation_Hub/mih_packages/mih_policy_tos/mih_terms_of_service.dart';
import 'package:Mzansi_Innovation_Hub/mih_packages/mzansi_wallet/mzansi_wallet.dart';
import 'package:flutter/material.dart';
import '../mih_components/mih_layout/mih_print_prevew.dart';
@@ -36,6 +38,17 @@ class RouteGenerator {
builder: (_) => ResetPassword(
token: Uri.base.queryParameters['token'],
));
//Privacy Policy
case '/privacy-policy':
return MaterialPageRoute(
settings: settings, builder: (_) => const MIHPrivacyPolocy());
//===============================================================
//Terms Of Service
case '/terms-of-service':
return MaterialPageRoute(
settings: settings, builder: (_) => const MIHTermsOfService());
//===============================================================
default:
// Internal Navigation
switch (settings.name) {
@@ -78,6 +91,18 @@ class RouteGenerator {
settings: settings, builder: (_) => const MIHAbout());
//===============================================================
//Privacy Policy
case '/privacy-policy':
return MaterialPageRoute(
settings: settings, builder: (_) => const MIHPrivacyPolocy());
//===============================================================
//Terms Of Service
case '/terms-of-service':
return MaterialPageRoute(
settings: settings, builder: (_) => const MIHTermsOfService());
//===============================================================
//User Profile
case '/user-profile':
if (args is AppProfileUpdateArguments) {