[BUG] Remove HtmlMessagePurifier when not used

This commit is contained in:
dab246
2021-10-14 09:08:47 +07:00
committed by Dat H. Pham
parent d3bdd9c3e9
commit 8346e030c8
8 changed files with 5 additions and 409 deletions
@@ -23,7 +23,6 @@ class EmailView extends GetView {
final emailController = Get.find<EmailController>();
final responsiveUtils = Get.find<ResponsiveUtils>();
final imagePaths = Get.find<ImagePaths>();
final htmlMessagePurifier = Get.find<HtmlMessagePurifier>();
@override
Widget build(BuildContext context) {
@@ -279,6 +278,7 @@ class EmailView extends GetView {
switch(emailController.emailContent.value!.type) {
case EmailContentType.textHtml:
return HtmlContentViewer(
minHeight: 400,
contentHtml: emailController.emailContent.value!.content,
onLoadStart: (webController, uri) => emailController.dispatchState(Right(WebViewLoadingState())),
onLoadStop: (webController, uri) => emailController.dispatchState(Right(WebViewLoadCompletedState())),