You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
5.7 KiB
Dart
102 lines
5.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hmg_patient_app_new/presentation/authentication/login.dart';
|
|
import 'package:hmg_patient_app_new/presentation/authentication/register.dart';
|
|
import 'package:hmg_patient_app_new/presentation/authentication/register_step2.dart';
|
|
import 'package:hmg_patient_app_new/presentation/blood_donation/blood_donation_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/book_appointment_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/comprehensive_checkup/comprehensive_checkup_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/e_referral/new_e_referral.dart';
|
|
import 'package:hmg_patient_app_new/presentation/health_calculators/health_calculators_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/home_health_care/hhc_procedures_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/medical_file/medical_file_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/smartwatches/huawei_health_example.dart';
|
|
import 'package:hmg_patient_app_new/presentation/smartwatches/smartwatch_instructions_page.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/organ_selector_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/possible_conditions_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/risk_factors_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/suggestions_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/symptoms_selector_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/triage_screen.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/user_info_selection.dart';
|
|
import 'package:hmg_patient_app_new/presentation/symptoms_checker/user_info_selection/user_info_flow_manager.dart';
|
|
import 'package:hmg_patient_app_new/presentation/tele_consultation/zoom/call_screen.dart';
|
|
import 'package:hmg_patient_app_new/splashPage.dart';
|
|
|
|
import '../core/dependencies.dart';
|
|
import '../features/monthly_reports/monthly_reports_repo.dart';
|
|
import '../features/monthly_reports/monthly_reports_view_model.dart';
|
|
import '../presentation/monthly_reports/monthly_reports_page.dart';
|
|
import '../services/error_handler_service.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class AppRoutes {
|
|
static const String initialRoute = '/initialRoute';
|
|
static const String loginScreen = '/loginScreen';
|
|
static const String register = '/register';
|
|
static const String registerStepTwo = '/registerStepTwo';
|
|
static const String landingScreen = '/landingScreen';
|
|
static const String medicalFilePage = '/medicalFilePage';
|
|
static const String eReferralPage = '/erReferralPage';
|
|
static const String comprehensiveCheckupPage = '/comprehensiveCheckupPage';
|
|
static const String healthCalculatorsPage = '/healthCalculatorsPage';
|
|
static const String homeHealthCarePage = '/homeHealthCarePage';
|
|
static const String zoomCallPage = '/zoomCallPage';
|
|
static const String bloodDonationPage = '/bloodDonationPage';
|
|
static const String smartWatches = '/smartWatches';
|
|
static const String huaweiHealthExample = '/huaweiHealthExample';
|
|
|
|
//appointments
|
|
static const String bookAppointmentPage = '/bookAppointmentPage';
|
|
|
|
// Symptoms Checker
|
|
static const String organSelectorPage = '/organSelectorPage';
|
|
static const String symptomsSelectorScreen = '/symptomsCheckerScreen';
|
|
static const String suggestionsScreen = '/suggestionsScreen';
|
|
static const String riskFactorsScreen = '/riskFactorsScreen';
|
|
static const String possibleConditionsScreen = '/possibleConditionsScreen';
|
|
static const String triageScreen = '/triageProgressScreen';
|
|
|
|
//UserInfoSelection
|
|
static const String userInfoSelection = '/userInfoSelection';
|
|
static const String userInfoFlowManager = '/userInfoFlowManager';
|
|
static const String monthlyReports = '/monthlyReportsPage';
|
|
|
|
static Map<String, WidgetBuilder> get routes => {
|
|
initialRoute: (context) => SplashPage(),
|
|
loginScreen: (context) => LoginScreen(),
|
|
landingScreen: (context) => LandingNavigation(),
|
|
register: (context) => RegisterNew(),
|
|
registerStepTwo: (context) => RegisterNewStep2(),
|
|
medicalFilePage: (context) => MedicalFilePage(),
|
|
zoomCallPage: (context) => CallScreen(),
|
|
eReferralPage: (context) => NewReferralPage(),
|
|
comprehensiveCheckupPage: (context) => ComprehensiveCheckupPage(),
|
|
homeHealthCarePage: (context) => HhcProceduresPage(),
|
|
organSelectorPage: (context) => OrganSelectorPage(),
|
|
symptomsSelectorScreen: (context) => SymptomsSelectorScreen(),
|
|
riskFactorsScreen: (context) => RiskFactorsScreen(),
|
|
suggestionsScreen: (context) => SuggestionsScreen(),
|
|
possibleConditionsScreen: (context) => PossibleConditionsScreen(),
|
|
triageScreen: (context) => TriageScreen(),
|
|
bloodDonationPage: (context) => BloodDonationPage(),
|
|
bookAppointmentPage: (context) => BookAppointmentPage(),
|
|
userInfoSelection: (context) => UserInfoSelectionScreen(),
|
|
userInfoFlowManager: (context) => UserInfoFlowManager(),
|
|
smartWatches: (context) => SmartwatchInstructionsPage(),
|
|
huaweiHealthExample: (context) => HuaweiHealthExample(),
|
|
|
|
//
|
|
healthCalculatorsPage: (context) => HealthCalculatorsPage(),
|
|
// monthlyReports: (context) => MonthlyReportsPage()
|
|
monthlyReports: (context) => ChangeNotifierProvider(
|
|
create: (_) => MonthlyReportsViewModel(
|
|
monthlyReportsRepo: getIt<MonthlyReportsRepo>(),
|
|
errorHandlerService: getIt<ErrorHandlerService>(),
|
|
),
|
|
child: const MonthlyReportsPage(),
|
|
),
|
|
|
|
};
|
|
}
|