From a0bdc34685f076d940f268ea7de01feb10189154 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 7 Sep 2025 17:48:58 +0300 Subject: [PATCH 1/3] My appointments implementation contd. --- android/app/src/main/AndroidManifest.xml | 2 +- .../images/svg/appointment_calendar_icon.svg | 3 + .../images/svg/appointment_checkin_icon.svg | 4 + assets/images/svg/appointment_pay_icon.svg | 4 + assets/images/svg/appointment_time_icon.svg | 3 + assets/images/svg/ask_doctor_icon.svg | 3 + .../images/svg/confirm_appointment_icon.svg | 4 + assets/images/svg/uae_dirham_symbol.svg | 7 + lib/core/api/api_client.dart | 3 +- lib/core/app_assets.dart | 7 + lib/core/dependencies.dart | 10 +- lib/core/utils/utils.dart | 30 ++ lib/extensions/string_extensions.dart | 4 +- .../medical_file/medical_file_view_model.dart | 12 + ...nt_appointment_history_response_model.dart | 311 ++++++++++++++++++ .../my_appointments/my_appointments_repo.dart | 108 +++--- .../my_appointments_view_model.dart | 61 ++++ .../utils/appointment_type.dart | 102 ++++++ lib/main.dart | 11 + .../appointment_details_page.dart | 140 ++++++++ .../appointments/my_appointments_page.dart | 111 +++++++ .../widgets/appointment_card.dart | 251 ++++++++++++++ .../widgets/appointment_doctor_card.dart | 189 +++++++++++ lib/presentation/home/landing_page.dart | 8 +- lib/presentation/lab/lab_orders_page.dart | 22 +- .../medical_file/medical_file_page.dart | 86 ++++- lib/widgets/custom_tab_bar.dart | 13 +- 27 files changed, 1422 insertions(+), 87 deletions(-) create mode 100644 assets/images/svg/appointment_calendar_icon.svg create mode 100644 assets/images/svg/appointment_checkin_icon.svg create mode 100644 assets/images/svg/appointment_pay_icon.svg create mode 100644 assets/images/svg/appointment_time_icon.svg create mode 100644 assets/images/svg/ask_doctor_icon.svg create mode 100644 assets/images/svg/confirm_appointment_icon.svg create mode 100644 assets/images/svg/uae_dirham_symbol.svg create mode 100644 lib/features/medical_file/medical_file_view_model.dart create mode 100644 lib/features/my_appointments/models/resp_models/patient_appointment_history_response_model.dart create mode 100644 lib/features/my_appointments/utils/appointment_type.dart create mode 100644 lib/presentation/appointments/appointment_details_page.dart create mode 100644 lib/presentation/appointments/my_appointments_page.dart create mode 100644 lib/presentation/appointments/widgets/appointment_card.dart create mode 100644 lib/presentation/appointments/widgets/appointment_doctor_card.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e07754e..09250e9 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -247,7 +247,7 @@ + android:value="AIzaSyCiD4YqVqLNYbt8-htvFy4Wp8XSph9E3wM" /> + android:value="AIzaSyB6TERnxIr0yJ3qG4ULBZbu0sAD4tGqtng" />