|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/date_util.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
|
@ -114,6 +115,13 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
iconColor: AppColors.ratingColorYellow,
|
|
|
|
|
labelText: "Rating: ${isLoading ? 4.78 : doctorsListResponseModel.decimalDoctorRate}".needTranslation,
|
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
|
doctorsListResponseModel.nearestFreeSlot != null
|
|
|
|
|
? AppCustomChipWidget(
|
|
|
|
|
labelText: (isLoading ? "Cardiologist" : DateUtil.getDateStringForNearestSlot(doctorsListResponseModel.nearestFreeSlot)).needTranslation,
|
|
|
|
|
backgroundColor: AppColors.successColor,
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
).toShimmer2(isShow: isLoading)
|
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12.h),
|
|
|
|
|
|