family member add navigation issue fixed

pull/299/head
haroon amjad 1 day ago
parent 783c5480f0
commit 19e102b52d

@ -34,6 +34,7 @@ import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
import 'package:hmg_patient_app_new/presentation/authentication/login.dart';
import 'package:hmg_patient_app_new/presentation/authentication/saved_login_screen.dart';
import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart';
import 'package:hmg_patient_app_new/presentation/my_family/my_family.dart';
import 'package:hmg_patient_app_new/routes/app_routes.dart';
import 'package:hmg_patient_app_new/services/cache_service.dart';
import 'package:hmg_patient_app_new/services/dialog_service.dart';
@ -624,7 +625,7 @@ class AuthenticationViewModel extends ChangeNotifier {
if (isFormFamilyFile) {
await medicalVm.getAllPendingRecordsByResponseId();
_navigationService.replaceAllRoutesAndNavigateToLandingWithMedicalAuth().whenComplete(() {
_navigationService.pushPageRoute(AppRoutes.medicalFilePage);
_navigationService.pushPageRoute(AppRoutes.familyFilesPage);
});
} else {
_navigationService.replaceAllRoutesAndNavigateToLanding();

@ -18,6 +18,7 @@ import 'package:hmg_patient_app_new/presentation/home/app_update_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/my_family/my_family.dart';
import 'package:hmg_patient_app_new/presentation/servicesPriceList/services_price_list_page.dart';
import 'package:hmg_patient_app_new/presentation/smartwatches/huawei_health_example.dart';
import 'package:hmg_patient_app_new/presentation/smartwatches/smartwatch_home_page.dart';
@ -99,6 +100,9 @@ class AppRoutes {
// Weather
static const String weatherDetailsPage = '/weatherDetailsPage';
// Weather
static const String familyFilesPage = '/familyFilesPage';
static Map<String, WidgetBuilder> get routes => {
initialRoute: (context) => SplashPage(),
loginScreen: (context) => LoginScreen(),
@ -136,6 +140,7 @@ class AppRoutes {
emergencyServicesPage: (context) => EmergencyServicesPage(),
servicesPriceListPage: (context) => ServicesPriceListPage(),
weatherDetailsPage: (context) => WeatherDetailsPage(),
familyFilesPage: (context) => FamilyMedicalScreen(),
addHealthTrackerEntryPage: (context) {
final args = ModalRoute.of(context)?.settings.arguments as HealthTrackerTypeEnum?;
return AddHealthTrackerEntryPage(

Loading…
Cancel
Save