From 7238c5b44ff62d0685f2f204e6b6f48562734e96 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 17 Sep 2024 16:45:20 +0200 Subject: [PATCH] pop to home --- .../lib/mih_packages/access_review/patient_access_review.dart | 2 +- .../mih_packages/manage_business/manage_business_profile.dart | 2 +- .../lib/mih_packages/patient_profile/patient_view.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Frontend/patient_manager/lib/mih_packages/access_review/patient_access_review.dart b/Frontend/patient_manager/lib/mih_packages/access_review/patient_access_review.dart index 5736a54f..86fab650 100644 --- a/Frontend/patient_manager/lib/mih_packages/access_review/patient_access_review.dart +++ b/Frontend/patient_manager/lib/mih_packages/access_review/patient_access_review.dart @@ -221,7 +221,7 @@ class _PatientAccessRequestState extends State { icon: Icons.arrow_back, iconSize: 35, onTap: () { - Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false); + Navigator.of(context).pop(); }, ); } diff --git a/Frontend/patient_manager/lib/mih_packages/manage_business/manage_business_profile.dart b/Frontend/patient_manager/lib/mih_packages/manage_business/manage_business_profile.dart index 15fd21a2..168a34d1 100644 --- a/Frontend/patient_manager/lib/mih_packages/manage_business/manage_business_profile.dart +++ b/Frontend/patient_manager/lib/mih_packages/manage_business/manage_business_profile.dart @@ -287,7 +287,7 @@ class _ManageBusinessProfileState extends State { icon: Icons.arrow_back, iconSize: 35, onTap: () { - Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false); + Navigator.of(context).pop(); }, ); } diff --git a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_view.dart b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_view.dart index 574d5d48..888bd031 100644 --- a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_view.dart +++ b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_view.dart @@ -109,7 +109,7 @@ class _PatientViewState extends State { icon: Icons.arrow_back, iconSize: 35, onTap: () { - Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false); + Navigator.of(context).pop(); }, ); }