forked from yaso_meth/mih-project
add access review tile
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:patient_manager/objects/appUser.dart';
|
||||
import 'package:patient_manager/objects/arguments.dart';
|
||||
import 'package:patient_manager/objects/patients.dart';
|
||||
import 'package:patient_manager/pages/home.dart';
|
||||
import 'package:patient_manager/pages/patientAccessReview.dart';
|
||||
import 'package:patient_manager/pages/patientAdd.dart';
|
||||
import 'package:patient_manager/pages/patientEdit.dart';
|
||||
import 'package:patient_manager/pages/patientManager.dart';
|
||||
@@ -37,6 +38,17 @@ class RouteGenerator {
|
||||
}
|
||||
return _errorRoute();
|
||||
|
||||
case '/patient-access-review':
|
||||
if (args is AppUser) {
|
||||
//print("route generator: $args");
|
||||
return MaterialPageRoute(
|
||||
builder: (_) => PatientAccessRequest(
|
||||
signedInUser: args,
|
||||
),
|
||||
);
|
||||
}
|
||||
return _errorRoute();
|
||||
|
||||
case '/patient-manager':
|
||||
if (args is BusinessArguments) {
|
||||
//print("route generator: $args");
|
||||
|
||||
Reference in New Issue
Block a user