|
|
|
|
@ -22,38 +22,48 @@ class ResultByFacility extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmgSize ==
|
|
|
|
|
0) return;
|
|
|
|
|
onFacilitySelected(false);
|
|
|
|
|
},
|
|
|
|
|
child: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMG.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmgHospital,
|
|
|
|
|
isHMC: false,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmgSize ?? 0}",
|
|
|
|
|
nearest: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmgDistance),
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmgSize !=
|
|
|
|
|
0,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmgSize ==
|
|
|
|
|
0) return;
|
|
|
|
|
onFacilitySelected(false);
|
|
|
|
|
},
|
|
|
|
|
child: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMG.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmgHospital,
|
|
|
|
|
isHMC: false,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmgSize ?? 0}",
|
|
|
|
|
nearest: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmgDistance),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16,),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmcSize ==
|
|
|
|
|
0) return;
|
|
|
|
|
onFacilitySelected(true);
|
|
|
|
|
},
|
|
|
|
|
child: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMC.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmcHospital,
|
|
|
|
|
isHMC: true,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmcSize ?? 0}",
|
|
|
|
|
nearest: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmcDistance),
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmcSize !=
|
|
|
|
|
0,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmcSize ==
|
|
|
|
|
0) return;
|
|
|
|
|
onFacilitySelected(true);
|
|
|
|
|
},
|
|
|
|
|
child: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMC.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmcHospital,
|
|
|
|
|
isHMC: true,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmcSize ?? 0}",
|
|
|
|
|
nearest: patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[selectedRegion]?.hmcDistance),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|