|
|
|
|
@ -89,17 +89,15 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.medicalReportList.length,
|
|
|
|
|
(index) => InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
if (model.medicalReportList[index].status ==
|
|
|
|
|
1) {
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (model.medicalReportList[index].status == 1) {
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
PATIENT_MEDICAL_REPORT_DETAIL,
|
|
|
|
|
arguments: {
|
|
|
|
|
'patient': patient,
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
'medicalReport':
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
'medicalReport': model.medicalReportList[index]
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
@ -109,8 +107,7 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
'type': MedicalReportStatus.ADD,
|
|
|
|
|
'medicalReport':
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
'medicalReport': model.medicalReportList[index]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -132,12 +129,13 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
|
AppText(
|
|
|
|
|
model.medicalReportList[index].status == 1
|
|
|
|
|
? TranslationBase.of(context).onHold
|
|
|
|
|
: TranslationBase.of(context).verified,
|
|
|
|
|
color:
|
|
|
|
|
model.medicalReportList[index].status ==
|
|
|
|
|
1
|
|
|
|
|
? Colors.red[700]
|
|
|
|
|
: Colors.green[700],
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.verified,
|
|
|
|
|
color: model.medicalReportList[index]
|
|
|
|
|
.status ==
|
|
|
|
|
1
|
|
|
|
|
? Colors.red[700]
|
|
|
|
|
: Colors.green[700],
|
|
|
|
|
fontSize: 1.4 * SizeConfig.textMultiplier,
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
@ -173,37 +171,55 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: 0, top: 4, right: 8, bottom: 0),
|
|
|
|
|
child: LargeAvatar(
|
|
|
|
|
name: projectViewModel.isArabic
|
|
|
|
|
? model
|
|
|
|
|
.medicalReportList[index].doctorNameN
|
|
|
|
|
: model
|
|
|
|
|
.medicalReportList[index].doctorName,
|
|
|
|
|
url: model
|
|
|
|
|
.medicalReportList[index].doctorImageURL,
|
|
|
|
|
? model.medicalReportList[index]
|
|
|
|
|
.doctorNameN
|
|
|
|
|
: model.medicalReportList[index]
|
|
|
|
|
.doctorName,
|
|
|
|
|
url: model.medicalReportList[index]
|
|
|
|
|
.doctorImageURL,
|
|
|
|
|
),
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 50,
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).showDetail,
|
|
|
|
|
fontSize: 1.4 * SizeConfig.textMultiplier,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? model.medicalReportList[index]
|
|
|
|
|
.projectNameN
|
|
|
|
|
: model.medicalReportList[index]
|
|
|
|
|
.projectName,
|
|
|
|
|
fontSize:
|
|
|
|
|
1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? model.medicalReportList[index]
|
|
|
|
|
.clinicNameN
|
|
|
|
|
: model.medicalReportList[index]
|
|
|
|
|
.clinicName,
|
|
|
|
|
fontSize:
|
|
|
|
|
1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// child: Html(
|
|
|
|
|
// data: model.medicalReportList[index]
|
|
|
|
|
// .reportDataHtml ??
|
|
|
|
|
// ""),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 50,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
@ -224,7 +240,9 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,)
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|