|
|
|
|
@ -136,7 +136,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
).withHorizontalPadding(24.w).onPress(() {
|
|
|
|
|
DialogService dialogService = getIt.get<DialogService>();
|
|
|
|
|
dialogService.showFamilyBottomSheetWithoutH(
|
|
|
|
|
label: "Who do you want to book for?".needTranslation,
|
|
|
|
|
label: "Family Files".needTranslation,
|
|
|
|
|
message: "This clinic or doctor is only available for the below eligible profiles.".needTranslation,
|
|
|
|
|
onSwitchPress: (FamilyFileResponseModelLists profile) {
|
|
|
|
|
medicalFileViewModel.switchFamilyFiles(responseID: profile.responseId, patientID: profile.patientId, phoneNumber: profile.mobileNumber);
|
|
|
|
|
@ -144,7 +144,6 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
profiles: medicalFileViewModel.patientFamilyFiles);
|
|
|
|
|
}),
|
|
|
|
|
isLeading: false,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
@ -236,8 +235,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
iconColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor : AppColors.successColor,
|
|
|
|
|
textColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor : AppColors.successColor,
|
|
|
|
|
iconSize: 12.w,
|
|
|
|
|
backgroundColor:
|
|
|
|
|
insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor.withOpacity(0.1) : AppColors.successColor.withOpacity(0.1),
|
|
|
|
|
backgroundColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor.withOpacity(0.1) : AppColors.successColor.withOpacity(0.1),
|
|
|
|
|
labelPadding: EdgeInsetsDirectional.only(end: 8.w),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
@ -271,7 +269,6 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -344,6 +341,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Consumer<MyAppointmentsViewModel>(builder: (context, myAppointmentsVM, child) {
|
|
|
|
|
return SizedBox(
|
|
|
|
|
height: 185.h,
|
|
|
|
|
child: myAppointmentsVM.isMyAppointmentsLoading
|
|
|
|
|
? MedicalFileAppointmentCard(
|
|
|
|
|
patientAppointmentHistoryResponseModel: PatientAppointmentHistoryResponseModel(),
|
|
|
|
|
|