forked from yaso_meth/mih-project
add new route for appointments. to be used later
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/mih_components/mih_layout/mih_print_prevew.dart';
|
||||
import 'package:patient_manager/mih_components/mih_pop_up_messages/mih_notification_message.dart';
|
||||
import 'package:patient_manager/mih_packages/appointment/appointments.dart';
|
||||
import 'package:patient_manager/mih_packages/authentication/auth_check.dart';
|
||||
import 'package:patient_manager/mih_packages/patient_profile/add_or_view_patient.dart';
|
||||
import 'package:patient_manager/mih_packages/patient_profile/patient_add.dart';
|
||||
@@ -157,6 +158,20 @@ class RouteGenerator {
|
||||
return _errorRoute();
|
||||
//===============================================================
|
||||
|
||||
// Access Review Page
|
||||
case '/appointments':
|
||||
if (args is AppUser) {
|
||||
//print("route generator: $args");
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (_) => Appointments(
|
||||
signedInUser: args,
|
||||
),
|
||||
);
|
||||
}
|
||||
return _errorRoute();
|
||||
//===============================================================
|
||||
|
||||
//Patient Manager Pages
|
||||
case '/patient-manager':
|
||||
if (args is BusinessArguments) {
|
||||
|
||||
Reference in New Issue
Block a user