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); exportAttachment(context, attachment);
} }
}, },
onViewAttachmentFileAction: (attachment) { // onViewAttachmentFileAction: (attachment) {
if (PlatformInfo.isWeb) { // if (PlatformInfo.isWeb) {
viewAttachmentForWeb(attachment); // viewAttachmentForWeb(attachment);
} else { // } else {
exportAttachment(context, attachment); // exportAttachment(context, attachment);
} // }
}, // },
) )
), ),
barrierColor: AppColor.colorDefaultCupertinoActionSheet, barrierColor: AppColor.colorDefaultCupertinoActionSheet,
@@ -350,13 +350,13 @@ class EmailView extends GetWidget<SingleEmailController> {
controller.exportAttachment(context, attachment); controller.exportAttachment(context, attachment);
} }
}, },
viewAttachmentAction: (attachment) { // viewAttachmentAction: (attachment) {
if (PlatformInfo.isWeb) { // if (PlatformInfo.isWeb) {
controller.viewAttachmentForWeb(attachment); // controller.viewAttachmentForWeb(attachment);
} else { // } else {
controller.exportAttachment(context, attachment); // controller.exportAttachment(context, attachment);
} // }
}, // },
onTapShowAllAttachmentFile: () => controller.openAttachmentList(context, controller.attachments), onTapShowAllAttachmentFile: () => controller.openAttachmentList(context, controller.attachments),
); );
} else { } else {