From bb274e80c1e0fae5149fb9b313cba311e21d440d Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Wed, 8 Apr 2026 18:09:42 +0300 Subject: [PATCH] updates --- .../appointments/widgets/appointment_doctor_card.dart | 6 ++++-- .../book_appointment/widgets/doctor_card.dart | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/presentation/appointments/widgets/appointment_doctor_card.dart b/lib/presentation/appointments/widgets/appointment_doctor_card.dart index 5de06455..b8a0ec8a 100644 --- a/lib/presentation/appointments/widgets/appointment_doctor_card.dart +++ b/lib/presentation/appointments/widgets/appointment_doctor_card.dart @@ -142,8 +142,10 @@ class AppointmentDoctorCard extends StatelessWidget { ], ), ), - Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown).onPress(() async { - DoctorsListResponseModel selectedDoctor = DoctorsListResponseModel(); + patientAppointmentHistoryResponseModel.isLiveCareAppointment! + ? SizedBox.shrink() + : Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown).onPress(() async { + DoctorsListResponseModel selectedDoctor = DoctorsListResponseModel(); selectedDoctor.doctorID = patientAppointmentHistoryResponseModel.doctorID; selectedDoctor.doctorImageURL = patientAppointmentHistoryResponseModel.doctorImageURL; selectedDoctor.name = patientAppointmentHistoryResponseModel.doctorNameObj; diff --git a/lib/presentation/book_appointment/widgets/doctor_card.dart b/lib/presentation/book_appointment/widgets/doctor_card.dart index 11042a57..7b9ce848 100644 --- a/lib/presentation/book_appointment/widgets/doctor_card.dart +++ b/lib/presentation/book_appointment/widgets/doctor_card.dart @@ -159,10 +159,12 @@ class DoctorCard extends StatelessWidget { ], ), ), - Expanded( - flex: 1, - child: Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown).toShimmer2(isShow: isLoading), - ), + (doctorsListResponseModel.isLiveCare ?? true) + ? SizedBox.shrink() + : Expanded( + flex: 1, + child: Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown).toShimmer2(isShow: isLoading), + ), ], ), SizedBox(height: 16.h),