Skip to content

Commit f107dbb

Browse files
Fix blinking html view when back from other apps
1 parent 0ba9b28 commit f107dbb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/features/email/presentation/email_view.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,7 @@ class EmailView extends GetWidget<SingleEmailController> {
367367
horizontal: EmailViewStyles.mobileContentHorizontalMargin,
368368
),
369369
child: HtmlContentViewer(
370-
key: PlatformInfo.isIntegrationTesting
371-
? controller.htmlContentViewKey
372-
: null,
370+
key: controller.htmlContentViewKey,
373371
contentHtml: allEmailContents,
374372
initialWidth: bodyConstraints.maxWidth,
375373
direction: AppUtils.getCurrentDirection(context),
@@ -409,9 +407,7 @@ class EmailView extends GetWidget<SingleEmailController> {
409407
horizontal: EmailViewStyles.mobileContentHorizontalMargin
410408
),
411409
child: HtmlContentViewer(
412-
key: PlatformInfo.isIntegrationTesting
413-
? controller.htmlContentViewKey
414-
: null,
410+
key: controller.htmlContentViewKey,
415411
contentHtml: allEmailContents,
416412
initialWidth: bodyConstraints.maxWidth,
417413
direction: AppUtils.getCurrentDirection(context),

0 commit comments

Comments
 (0)