TF-2172 Display DropZone view when drag active

(cherry picked from commit 13a88cc956190dd3ebb47033cd1f95e28b6694af)
This commit is contained in:
dab246
2023-10-02 15:10:37 +07:00
committed by Dat H. Pham
parent 7fe69aeab6
commit 92575309ec
4 changed files with 64 additions and 24 deletions
@@ -278,7 +278,15 @@ class EmailView extends GetWidget<SingleEmailController> {
if (attachments.isNotEmpty) {
return EmailAttachmentsWidget(
attachments: attachments,
onDownloadAttachmentActionCallback: (context, attachment) {
onDragStarted: () {
log('EmailView::_buildEmailMessage:onDragStarted:');
controller.mailboxDashBoardController.enableDraggableApp();
},
onDragEnd: (details) {
log('EmailView::_buildEmailMessage:onDragEnd:');
controller.mailboxDashBoardController.disableDraggableApp();
},
downloadAttachmentAction: (attachment) {
if (PlatformInfo.isWeb) {
controller.downloadAttachmentForWeb(context, attachment);
} else {