CR-20974-PDF-Results-In-Lab
haroon amjad 1 month ago
parent f3e13f1ed8
commit e0eabb38d7

@ -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,
),
),
],

Loading…
Cancel
Save