|
|
|
@ -85,6 +85,14 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
@ -144,21 +152,36 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: DoctorCard(
|
|
|
|
|
doctorName: model.medicalFileList[0]
|
|
|
|
|
.entityList[0].timelines[index].doctorName,
|
|
|
|
|
doctorName: model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.doctorName,
|
|
|
|
|
clinic: model.medicalFileList[0].entityList[0]
|
|
|
|
|
.timelines[index].clinicName,
|
|
|
|
|
branch: model.medicalFileList[0].entityList[0]
|
|
|
|
|
.timelines[index].projectName,
|
|
|
|
|
profileUrl: model.medicalFileList[0]
|
|
|
|
|
.entityList[0].timelines[index].doctorImage,
|
|
|
|
|
profileUrl: model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.doctorImage,
|
|
|
|
|
appointmentDate:
|
|
|
|
|
DateUtils.getDateTimeFromServerFormat(
|
|
|
|
|
model.medicalFileList[0].entityList[0]
|
|
|
|
|
.timelines[index].date,
|
|
|
|
|
),
|
|
|
|
|
isPrescriptions: true,
|
|
|
|
|
),
|
|
|
|
|
isShowEye: model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0
|
|
|
|
|
? true
|
|
|
|
|
: false),
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
: Center(
|
|
|
|
|