TF-1895 Fix the screen seem be black before loading the email content successfully

(cherry picked from commit 88acacae557eb231cf3819d914e9ca90399b3b45)
This commit is contained in:
dab246
2023-07-07 18:09:09 +07:00
committed by Dat H. Pham
parent ad54e6e863
commit f4c8b437bc
@@ -116,6 +116,9 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
}
return InAppWebView(
key: ValueKey(htmlData),
initialSettings: InAppWebViewSettings(
transparentBackground: true,
),
onWebViewCreated: (controller) async {
_webViewController = controller;
controller.loadData(data: htmlData);