|
|
|
|
@ -43,15 +43,44 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.network(
|
|
|
|
|
isLoading
|
|
|
|
|
? "https://hmgwebservices.com/Images/MobileImages/OALAY/1439.png"
|
|
|
|
|
: doctorsListResponseModel.doctorImageURL ?? "https://hmgwebservices.com/Images/MobileImages/OALAY/1439.png",
|
|
|
|
|
width: 63.h,
|
|
|
|
|
height: 63.h,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
).circle(100).toShimmer2(isShow: isLoading),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.network(
|
|
|
|
|
isLoading
|
|
|
|
|
? "https://hmgwebservices.com/Images/MobileImages/OALAY/1439.png"
|
|
|
|
|
: doctorsListResponseModel.doctorImageURL ?? "https://hmgwebservices.com/Images/MobileImages/OALAY/1439.png",
|
|
|
|
|
width: 63.h,
|
|
|
|
|
height: 63.h,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
).circle(100).toShimmer2(isShow: isLoading),
|
|
|
|
|
Transform.translate(
|
|
|
|
|
offset: Offset(0.0, -20.h),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: 40.w,
|
|
|
|
|
height: 40.h,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColors.whiteColor,
|
|
|
|
|
shape: BoxShape.circle, // Makes the container circular
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: AppColors.scaffoldBgColor, // Color of the border
|
|
|
|
|
width: 1.5.w, // Width of the border
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.rating_icon, width: 15.w, height: 15.h),
|
|
|
|
|
SizedBox(height: 2.h),
|
|
|
|
|
"${isLoading ? 4.78 : doctorsListResponseModel.decimalDoctorRate}".toText11(isBold: true, color: AppColors.textColor),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).circle(100).toShimmer2(isShow: isLoading),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 9,
|
|
|
|
|
@ -102,23 +131,17 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12.h),
|
|
|
|
|
Wrap(
|
|
|
|
|
direction: Axis.horizontal,
|
|
|
|
|
spacing: 3.h,
|
|
|
|
|
runSpacing: 4.h,
|
|
|
|
|
children: [
|
|
|
|
|
AppCustomChipWidget(
|
|
|
|
|
labelText: "Clinic: ${isLoading ? "Cardiologist" : doctorsListResponseModel.clinicName}".needTranslation,
|
|
|
|
|
labelText: "${isLoading ? "Cardiologist" : doctorsListResponseModel.clinicName}".needTranslation,
|
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
|
AppCustomChipWidget(
|
|
|
|
|
labelText: "Branch: ${isLoading ? "Olaya Hospital" : doctorsListResponseModel.projectName}".needTranslation,
|
|
|
|
|
labelText: "${isLoading ? "Olaya Hospital" : doctorsListResponseModel.projectName}".needTranslation,
|
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
|
doctorsListResponseModel.decimalDoctorRate != null ? AppCustomChipWidget(
|
|
|
|
|
icon: AppAssets.rating_icon,
|
|
|
|
|
iconColor: AppColors.ratingColorYellow,
|
|
|
|
|
labelText: "Rating: ${isLoading ? 4.78 : doctorsListResponseModel.decimalDoctorRate}".needTranslation,
|
|
|
|
|
).toShimmer2(isShow: isLoading) : SizedBox(),
|
|
|
|
|
bookAppointmentsViewModel.isNearestAppointmentSelected
|
|
|
|
|
? doctorsListResponseModel.nearestFreeSlot != null
|
|
|
|
|
? AppCustomChipWidget(
|
|
|
|
|
|