|
|
|
|
@ -49,48 +49,38 @@ class LabOrderResultItem extends StatelessWidget {
|
|
|
|
|
SizedBox(height: 12.h),
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: ui.TextDirection.ltr,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Flexible(
|
|
|
|
|
Text(
|
|
|
|
|
"${tests?.resultValue} ${tests?.uOM}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 24.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: tests!.checkIfGraphShouldBeDisplayed()
|
|
|
|
|
? context.read<LabViewModel>().getColor(
|
|
|
|
|
tests?.calculatedResultFlag ?? "",
|
|
|
|
|
)
|
|
|
|
|
: Colors.grey.shade700,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 2.h,
|
|
|
|
|
// ),
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: tests?.referanceRange != null,
|
|
|
|
|
child: Text(
|
|
|
|
|
"${tests?.resultValue} ${tests?.uOM}",
|
|
|
|
|
"(${LocaleKeys.referenceRange.tr(context: context)}: ${tests?.referanceRange})",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 24.f,
|
|
|
|
|
fontSize: 12.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: tests!.checkIfGraphShouldBeDisplayed()
|
|
|
|
|
? context.read<LabViewModel>().getColor(
|
|
|
|
|
tests?.calculatedResultFlag ?? "",
|
|
|
|
|
)
|
|
|
|
|
: Colors.grey.shade700,
|
|
|
|
|
letterSpacing: -2,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 4.h,
|
|
|
|
|
),
|
|
|
|
|
Visibility(
|
|
|
|
|
// visible: tests?.checkIfGraphShouldBeDisplayed() == true,
|
|
|
|
|
visible: true,
|
|
|
|
|
child: Expanded(
|
|
|
|
|
flex: 2,
|
|
|
|
|
child: Visibility(
|
|
|
|
|
visible: tests?.referanceRange != null,
|
|
|
|
|
child: Text(
|
|
|
|
|
"(${LocaleKeys.referenceRange.tr(context: context)}: ${tests?.referanceRange})",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
),
|
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
|
// maxLines: 2,
|
|
|
|
|
softWrap: true,
|
|
|
|
|
),
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
),
|
|
|
|
|
softWrap: true,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
|