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
@@ -1453,7 +1453,14 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
} else {
exportAttachment(context, attachment);
}
}
},
onViewAttachmentFileAction: (attachment) {
if (PlatformInfo.isWeb) {
viewAttachmentForWeb(attachment);
} else {
exportAttachment(context, attachment);
}
},
)
),
barrierColor: AppColor.colorDefaultCupertinoActionSheet,