TF-2628 Disable view attachment in mobile web (#2733)

This commit is contained in:
Dat Dang
2024-03-19 11:18:30 +07:00
committed by GitHub
parent a1e76f4634
commit 523ff9acc7
2 changed files with 4 additions and 2 deletions
@@ -109,7 +109,9 @@ class EmailAttachmentsWidget extends StatelessWidget {
onDragStarted: onDragStarted, onDragStarted: onDragStarted,
onDragEnd: onDragEnd, onDragEnd: onDragEnd,
downloadAttachmentAction: downloadAttachmentAction, downloadAttachmentAction: downloadAttachmentAction,
viewAttachmentAction: viewAttachmentAction, viewAttachmentAction: PlatformInfo.isCanvasKit
? viewAttachmentAction
: null,
); );
} else { } else {
return AttachmentItemWidget( return AttachmentItemWidget(
@@ -99,7 +99,7 @@ class EmailViewAppBarWidget extends StatelessWidget {
presentationEmail.hasStarred ? EmailActionType.unMarkAsStarred : EmailActionType.markAsStarred presentationEmail.hasStarred ? EmailActionType.unMarkAsStarred : EmailActionType.markAsStarred
) )
), ),
if (PlatformInfo.isWeb) if (PlatformInfo.isWeb && PlatformInfo.isCanvasKit)
...[ ...[
const SizedBox(width: EmailViewAppBarWidgetStyles.space), const SizedBox(width: EmailViewAppBarWidgetStyles.space),
TMailButtonWidget.fromIcon( TMailButtonWidget.fromIcon(