|
|
|
|
@ -165,25 +165,22 @@ class LabOrderResultItem extends StatelessWidget {
|
|
|
|
|
if (tests?.isLabTestAttachment ?? false)
|
|
|
|
|
Flexible(
|
|
|
|
|
flex: 2,
|
|
|
|
|
child: Visibility(
|
|
|
|
|
visible: tests?.checkIfGraphShouldBeDisplayed() == true,
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
icon: AppAssets.document,
|
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
|
iconSize: 16.h,
|
|
|
|
|
text: LocaleKeys.viewAttachment.tr(context: context),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
getIt.get<LabViewModel>().openLabResultsAttachmentSheet(labResult: tests!);
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withAlpha(20),
|
|
|
|
|
borderColor: AppColors.primaryRedColor.withAlpha(0),
|
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
|
fontSize: 13.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
),
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
icon: AppAssets.document,
|
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
|
iconSize: 16.h,
|
|
|
|
|
text: LocaleKeys.viewAttachment.tr(context: context),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
getIt.get<LabViewModel>().openLabResultsAttachmentSheet(labResult: tests!);
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withAlpha(20),
|
|
|
|
|
borderColor: AppColors.primaryRedColor.withAlpha(0),
|
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
|
fontSize: 13.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|