WD: 0 count hmg or hmc will not be displayed

merge-update-with-lab-changes
taha.alam 10 months ago
parent 2e9f6bcb51
commit bbf18baade

@ -22,7 +22,11 @@ class ResultByFacility extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Column(
children: [ children: [
InkWell( Visibility(
visible: patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmgSize !=
0,
child: InkWell(
onTap: () { onTap: () {
if (patientDoctorAppointmentListHospital if (patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmgSize == .registeredDoctorMap?[selectedRegion]?.hmgSize ==
@ -38,8 +42,13 @@ class ResultByFacility extends StatelessWidget {
nearest: patientDoctorAppointmentListHospital nearest: patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmgDistance), .registeredDoctorMap?[selectedRegion]?.hmgDistance),
), ),
),
SizedBox(height: 16,), SizedBox(height: 16,),
InkWell( Visibility(
visible: patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmcSize !=
0,
child: InkWell(
onTap: () { onTap: () {
if (patientDoctorAppointmentListHospital if (patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmcSize == .registeredDoctorMap?[selectedRegion]?.hmcSize ==
@ -54,6 +63,7 @@ class ResultByFacility extends StatelessWidget {
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmcSize ?? 0}", "${patientDoctorAppointmentListHospital.registeredDoctorMap?[selectedRegion]?.hmcSize ?? 0}",
nearest: patientDoctorAppointmentListHospital nearest: patientDoctorAppointmentListHospital
.registeredDoctorMap?[selectedRegion]?.hmcDistance), .registeredDoctorMap?[selectedRegion]?.hmcDistance),
),
) )
]); ]);
} }

@ -99,6 +99,10 @@ class RegionTitle extends StatelessWidget {
height: 8, height: 8,
), ),
Row( Row(
children: [
Visibility(
visible: hmgCount != "0",
child: Row(
children: [ children: [
SvgPicture.asset( SvgPicture.asset(
'assets/images/svg/HMG.svg', 'assets/images/svg/HMG.svg',
@ -109,7 +113,7 @@ class RegionTitle extends StatelessWidget {
width: 8, width: 8,
), ),
Text( Text(
"${TranslationBase.of(context).HospitalString(num.parse(hmgCount)).replaceAll("@", hmgCount)} ,", "${TranslationBase.of(context).HospitalString(num.parse(hmgCount)).replaceAll("@", hmgCount)}",
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
color: Color(0xFFD02127), color: Color(0xFFD02127),
@ -118,6 +122,16 @@ class RegionTitle extends StatelessWidget {
SizedBox( SizedBox(
width: 8, width: 8,
), ),
],
),
),
Visibility(
visible: hmcCount != "0" && hmgCount != "0",
child: Text(" ,")),
Visibility(
visible: hmcCount != "0",
child: Row(
children: [
SvgPicture.asset( SvgPicture.asset(
'assets/images/svg/HMC.svg', 'assets/images/svg/HMC.svg',
width: 10, width: 10,
@ -135,6 +149,9 @@ class RegionTitle extends StatelessWidget {
), ),
], ],
), ),
),
],
),
], ],
), ),
), ),

Loading…
Cancel
Save