|
@@ -163,7 +163,9 @@ class Routes {
|
|
|
binding: BindingsBuilder(
|
|
|
() {
|
|
|
Get.lazyPut(() => CrowdLabelsController());
|
|
|
- Get.lazyPut(() => CreatePatientController());
|
|
|
+ if (!Get.isRegistered<CreatePatientController>()) {
|
|
|
+ Get.lazyPut(() => CreatePatientController());
|
|
|
+ }
|
|
|
Get.lazyPut(() => PatientListController());
|
|
|
Get.lazyPut(() => PatientDetailController());
|
|
|
},
|
|
@@ -177,7 +179,9 @@ class Routes {
|
|
|
binding: BindingsBuilder(
|
|
|
() {
|
|
|
Get.lazyPut(() => CrowdLabelsController());
|
|
|
- Get.lazyPut(() => CreatePatientController());
|
|
|
+ if (!Get.isRegistered<CreatePatientController>()) {
|
|
|
+ Get.lazyPut(() => CreatePatientController());
|
|
|
+ }
|
|
|
Get.lazyPut(() => PatientListController());
|
|
|
Get.lazyPut(() => PatientDetailController());
|
|
|
},
|