TF-2628 Integrate view attachment feature with UI

This commit is contained in:
DatDang
2024-02-27 10:08:32 +07:00
committed by Dat H. Pham
parent 31fbda6c0c
commit ef305229f6
8 changed files with 39 additions and 6 deletions
@@ -345,7 +345,14 @@ class EmailView extends GetWidget<SingleEmailController> {
},
downloadAttachmentAction: (attachment) {
if (PlatformInfo.isWeb) {
controller.downloadAttachmentForWeb(context, attachment);
controller.downloadAttachmentForWeb(attachment);
} else {
controller.exportAttachment(context, attachment);
}
},
viewAttachmentAction: (attachment) {
if (PlatformInfo.isWeb) {
controller.viewAttachmentForWeb(attachment);
} else {
controller.exportAttachment(context, attachment);
}