|
|
|
@ -390,8 +390,9 @@ class AppointmentCard extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Row(
|
|
|
|
return (patientAppointmentHistoryResponseModel.isActiveDoctor ?? true)
|
|
|
|
children: [
|
|
|
|
? Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 6,
|
|
|
|
flex: 6,
|
|
|
|
child: (AppointmentType.isArrived(patientAppointmentHistoryResponseModel)
|
|
|
|
child: (AppointmentType.isArrived(patientAppointmentHistoryResponseModel)
|
|
|
|
@ -441,7 +442,34 @@ class AppointmentCard extends StatelessWidget {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
)
|
|
|
|
|
|
|
|
: CustomButton(
|
|
|
|
|
|
|
|
text: LocaleKeys.viewDetails.tr(context: context),
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
|
|
|
.push(
|
|
|
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
|
|
|
page: AppointmentDetailsPage(patientAppointmentHistoryResponseModel: patientAppointmentHistoryResponseModel),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
.then((_) {
|
|
|
|
|
|
|
|
myAppointmentsViewModel.initAppointmentsViewModel();
|
|
|
|
|
|
|
|
myAppointmentsViewModel.getPatientAppointments(true, false);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
|
|
|
|
fontSize: (isFoldable || isTablet) ? 12.f : 14.f,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
|
|
|
|
|
// height: isTablet || isFoldable ? 46.h : 40.h,
|
|
|
|
|
|
|
|
height: 40.h,
|
|
|
|
|
|
|
|
icon: isFromMedicalReport ? AppAssets.checkmark_icon : null,
|
|
|
|
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
|
|
|
|
iconSize: 16.h,
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|