vital sign hot fix

merge-requests/662/head
mosazaid 5 years ago
parent 25fb8ea5ae
commit 0e2b700136

@ -98,8 +98,8 @@ class VitalSignsViewModel extends BaseViewModel {
"${element.sAO2.toString()}"; /* - ${element.fIO2.toString()}*/ "${element.sAO2.toString()}"; /* - ${element.fIO2.toString()}*/
} }
if (painScore == null || painScore == "-") { if (painScore == null || painScore == "-") {
painScore = element.painScore.toString() != 'null' painScore = element.painScoreDesc.toString() != 'null'
? element.painScore.toString() ? element.painScoreDesc.toString()
: "-"; : "-";
painLocation = element.painLocation.toString() != 'null' painLocation = element.painLocation.toString() != 'null'
? element.painLocation.toString() ? element.painLocation.toString()

@ -102,7 +102,7 @@ class VitalSignDetailPainScale extends StatelessWidget {
child: Container( child: Container(
child: Center( child: Center(
child: AppText( child: AppText(
"${vitalList[index].painScore ?? "-"}", "${vitalList[index].painScoreDesc ?? "-"}",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Color(0XFF28353E), color: Color(0XFF28353E),
fontSize: SizeConfig.textMultiplier * 1.3, fontSize: SizeConfig.textMultiplier * 1.3,

Loading…
Cancel
Save