diff --git a/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart b/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart index 41e0475a..0cc44b0f 100644 --- a/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart +++ b/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart @@ -123,7 +123,7 @@ class _LaboratoryResultWidgetState extends State { source: "source", buttonText: "Click", type: ResultTypes.normal), - ItemResultCardWidgetWithParams(title: "NEUT%", subTitle: "55", referenceRange: "10-50", percentage: 65, note: "", source: "source", buttonText: "Click", type: ResultTypes.high), + ItemResultCardWidgetWithParams(title: "NEUT%", subTitle: "55", referenceRange: "10-50", percentage: -1, note: "", source: "source", buttonText: "Click", type: ResultTypes.normal), _isShowMoreGeneral ? Container( padding: EdgeInsets.only(left: 17, top: 12, right: 13, bottom: 12), diff --git a/lib/widgets/data_display/medical/LabResult/newUI/labWidgets.dart b/lib/widgets/data_display/medical/LabResult/newUI/labWidgets.dart index 34944579..81048730 100644 --- a/lib/widgets/data_display/medical/LabResult/newUI/labWidgets.dart +++ b/lib/widgets/data_display/medical/LabResult/newUI/labWidgets.dart @@ -85,7 +85,7 @@ class CustomResultProgressBar extends StatelessWidget { ), ], ), - Positioned( + if (!percentage.isNegative) Positioned( left: tooltipPosition, top: 33, child: Column( @@ -364,14 +364,14 @@ class ItemResultCardWidgetWithParams extends StatelessWidget { ), const SizedBox(height: 10), // Progress Bar - SizedBox( - height: 55, - child: CustomResultProgressBar( - percentage: percentage, - value: subTitle, - type: type, + SizedBox( + height: 55, + child: CustomResultProgressBar( + percentage: percentage, + value: subTitle, + type: type, + ), ), - ), const SizedBox(height: 12), // Note Section if (note.isNotEmpty)