From 609ae6ab83544391a04dab6d1e10d90045cd1a01 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 12 Jan 2026 15:32:19 +0300 Subject: [PATCH] updates --- lib/core/dependencies.dart | 8 -------- lib/presentation/hmg_services/services_page.dart | 1 - .../home/widgets/small_service_card.dart | 13 +++++++++++++ lib/presentation/parking/paking_page.dart | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/core/dependencies.dart b/lib/core/dependencies.dart index e4113f5..ebd09dd 100644 --- a/lib/core/dependencies.dart +++ b/lib/core/dependencies.dart @@ -304,13 +304,5 @@ class AppDependencies { activePrescriptionsRepo: getIt() ), ); - getIt.registerFactory( - () => QrParkingViewModel( - qrParkingRepo: getIt(), - errorHandlerService: getIt(), - cacheService: getIt(), - ), - ); - } } diff --git a/lib/presentation/hmg_services/services_page.dart b/lib/presentation/hmg_services/services_page.dart index 811b343..5c028db 100644 --- a/lib/presentation/hmg_services/services_page.dart +++ b/lib/presentation/hmg_services/services_page.dart @@ -606,7 +606,6 @@ class ServicesPage extends StatelessWidget { ), ), ); - }), ), ), diff --git a/lib/presentation/home/widgets/small_service_card.dart b/lib/presentation/home/widgets/small_service_card.dart index e74100c..49db8bf 100644 --- a/lib/presentation/home/widgets/small_service_card.dart +++ b/lib/presentation/home/widgets/small_service_card.dart @@ -7,6 +7,7 @@ import 'package:hmg_patient_app_new/extensions/string_extensions.dart'; import 'package:hmg_patient_app_new/extensions/widget_extensions.dart'; import 'package:hmg_patient_app_new/features/emergency_services/emergency_services_view_model.dart'; import 'package:hmg_patient_app_new/features/hospital/hospital_selection_view_model.dart'; +import 'package:hmg_patient_app_new/features/qr_parking/qr_parking_view_model.dart'; import 'package:hmg_patient_app_new/generated/locale_keys.g.dart'; import 'package:hmg_patient_app_new/presentation/appointments/my_doctors_page.dart'; import 'package:hmg_patient_app_new/presentation/book_appointment/search_doctor_by_name.dart'; @@ -15,6 +16,7 @@ import 'package:hmg_patient_app_new/presentation/health_calculators_and_converts import 'package:hmg_patient_app_new/presentation/insurance/insurance_home_page.dart'; import 'package:hmg_patient_app_new/presentation/lab/lab_orders_page.dart'; import 'package:hmg_patient_app_new/presentation/medical_file/patient_sickleaves_list_page.dart'; +import 'package:hmg_patient_app_new/presentation/parking/paking_page.dart'; import 'package:hmg_patient_app_new/presentation/prescriptions/prescriptions_list_page.dart'; import 'package:hmg_patient_app_new/widgets/common_bottom_sheet.dart'; import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart'; @@ -151,6 +153,17 @@ class SmallServiceCard extends StatelessWidget { ), ); break; + case "parking_guide": + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => ChangeNotifierProvider( + create: (_) => getIt(), + child: const ParkingPage(), + ), + ), + ); + break; default: // Handle unknown service break; diff --git a/lib/presentation/parking/paking_page.dart b/lib/presentation/parking/paking_page.dart index cd1e8bc..a82703b 100644 --- a/lib/presentation/parking/paking_page.dart +++ b/lib/presentation/parking/paking_page.dart @@ -55,7 +55,7 @@ class _ParkingPageState extends State { children: [ Expanded( child: SingleChildScrollView( - padding: const EdgeInsets.symmetric(horizontal: 16), + padding: EdgeInsets.symmetric(horizontal: 24.w), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [