pull/222/head
haroon amjad 2 days ago
parent fbb758e227
commit bb274e80c1

@ -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 { patientAppointmentHistoryResponseModel.isLiveCareAppointment!
DoctorsListResponseModel selectedDoctor = DoctorsListResponseModel(); ? 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.doctorID = patientAppointmentHistoryResponseModel.doctorID;
selectedDoctor.doctorImageURL = patientAppointmentHistoryResponseModel.doctorImageURL; selectedDoctor.doctorImageURL = patientAppointmentHistoryResponseModel.doctorImageURL;
selectedDoctor.name = patientAppointmentHistoryResponseModel.doctorNameObj; selectedDoctor.name = patientAppointmentHistoryResponseModel.doctorNameObj;

@ -159,10 +159,12 @@ class DoctorCard extends StatelessWidget {
], ],
), ),
), ),
Expanded( (doctorsListResponseModel.isLiveCare ?? true)
flex: 1, ? SizedBox.shrink()
child: Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown).toShimmer2(isShow: isLoading), : 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), SizedBox(height: 16.h),

Loading…
Cancel
Save