TF-2628 Temporary disable preview PDF
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user