Fix email content is broken when perform previous/next email then back to app (#4028)

This commit is contained in:
Dat Vu
2025-09-19 09:43:46 +07:00
committed by GitHub
parent ed48bcfed1
commit bf3c465b14
3 changed files with 6 additions and 7 deletions
@@ -372,7 +372,9 @@ class EmailView extends GetWidget<SingleEmailController> {
horizontal: EmailViewStyles.mobileContentHorizontalMargin,
),
child: HtmlContentViewer(
key: controller.htmlContentViewKey,
key: PlatformInfo.isIntegrationTesting
? controller.htmlContentViewKey
: null,
contentHtml: allEmailContents,
initialWidth: bodyConstraints.maxWidth,
direction: AppUtils.getCurrentDirection(context),
@@ -411,7 +413,9 @@ class EmailView extends GetWidget<SingleEmailController> {
horizontal: EmailViewStyles.mobileContentHorizontalMargin
),
child: HtmlContentViewer(
key: controller.htmlContentViewKey,
key: PlatformInfo.isIntegrationTesting
? controller.htmlContentViewKey
: null,
contentHtml: allEmailContents,
initialWidth: bodyConstraints.maxWidth,
direction: AppUtils.getCurrentDirection(context),