Change order of attachment and mail body on desktop

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-09 14:20:55 +07:00
committed by Dat H. Pham
parent 296065c0b7
commit 3ce7c60cef
5 changed files with 253 additions and 283 deletions
@@ -22,6 +22,7 @@ class AttachmentItemWidget extends StatelessWidget {
final Attachment attachment;
final ImagePaths imagePaths;
final double? width;
final EdgeInsetsGeometry? margin;
final OnDownloadAttachmentFileAction? downloadAttachmentAction;
final OnViewAttachmentFileAction? viewAttachmentAction;
final String? singleEmailControllerTag;
@@ -31,6 +32,7 @@ class AttachmentItemWidget extends StatelessWidget {
required this.attachment,
required this.imagePaths,
this.width,
this.margin,
this.downloadAttachmentAction,
this.viewAttachmentAction,
this.singleEmailControllerTag,
@@ -124,7 +126,7 @@ class AttachmentItemWidget extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 8),
backgroundColor: Colors.transparent,
width: width,
margin: const EdgeInsets.only(top: 8),
margin: margin,
onTapActionCallback:
isLoading ? null : () => _onViewOrDownloadAction(attachment),
child: bodyItemWidget,