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,
onDragEnd: onDragEnd,
downloadAttachmentAction: downloadAttachmentAction,
viewAttachmentAction: viewAttachmentAction,
viewAttachmentAction: PlatformInfo.isCanvasKit
? viewAttachmentAction
: null,
);
} else {
return AttachmentItemWidget(
@@ -99,7 +99,7 @@ class EmailViewAppBarWidget extends StatelessWidget {
presentationEmail.hasStarred ? EmailActionType.unMarkAsStarred : EmailActionType.markAsStarred
)
),
if (PlatformInfo.isWeb)
if (PlatformInfo.isWeb && PlatformInfo.isCanvasKit)
...[
const SizedBox(width: EmailViewAppBarWidgetStyles.space),
TMailButtonWidget.fromIcon(