TF-2172 Display DropZone view when drag active
(cherry picked from commit 13a88cc956190dd3ebb47033cd1f95e28b6694af)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user