TF-1801 Change design of email attachment

(cherry picked from commit d2700ab7ebb13cc948a7cbacbd336a04b2f2bc93)
This commit is contained in:
hieubt
2023-10-17 13:39:43 +07:00
committed by Dat H. Pham
parent 8e9897166a
commit a7e5e3b7f6
5 changed files with 151 additions and 136 deletions
@@ -340,7 +340,9 @@ class EmailView extends GetWidget<SingleEmailController> {
final attachments = controller.attachments.listAttachmentsDisplayedOutSide;
if (attachments.isNotEmpty) {
return EmailAttachmentsWidget(
responsiveUtils: responsiveUtils,
attachments: attachments,
imagePaths: imagePaths,
onDragStarted: () {
log('EmailView::_buildEmailMessage:onDragStarted:');
controller.mailboxDashBoardController.enableDraggableApp();
@@ -356,6 +358,7 @@ class EmailView extends GetWidget<SingleEmailController> {
controller.exportAttachment(context, attachment);
}
},
onTapShowAllAttachmentFile: () => controller.openAttachmentList(context, attachments),
);
} else {
return const SizedBox.shrink();