TF-2628 Temporary disable preview PDF

This commit is contained in:
DatDang
2024-04-04 08:51:49 +07:00
committed by Dat H. Pham
parent 2590279d30
commit af0dc0cd86
2 changed files with 14 additions and 14 deletions
@@ -1504,13 +1504,13 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
exportAttachment(context, attachment);
}
},
onViewAttachmentFileAction: (attachment) {
if (PlatformInfo.isWeb) {
viewAttachmentForWeb(attachment);
} else {
exportAttachment(context, attachment);
}
},
// onViewAttachmentFileAction: (attachment) {
// if (PlatformInfo.isWeb) {
// viewAttachmentForWeb(attachment);
// } else {
// exportAttachment(context, attachment);
// }
// },
)
),
barrierColor: AppColor.colorDefaultCupertinoActionSheet,
@@ -350,13 +350,13 @@ class EmailView extends GetWidget<SingleEmailController> {
controller.exportAttachment(context, attachment);
}
},
viewAttachmentAction: (attachment) {
if (PlatformInfo.isWeb) {
controller.viewAttachmentForWeb(attachment);
} else {
controller.exportAttachment(context, attachment);
}
},
// viewAttachmentAction: (attachment) {
// if (PlatformInfo.isWeb) {
// controller.viewAttachmentForWeb(attachment);
// } else {
// controller.exportAttachment(context, attachment);
// }
// },
onTapShowAllAttachmentFile: () => controller.openAttachmentList(context, controller.attachments),
);
} else {