Open AlicyberMeteors opened 4 months ago
The flickering issue when navigating back might be due to the HtmlEditor's disposal process or screen rendering when it reloads. I cant say for sure whats the problem, but you can check these:
Method
: Make sure the htmlEditorController
is properly disposed when the widget is removed.setState
Calls: Calling setState
on every onChangeContent
can be resource-intensive and could contribute to flickering, especially if the editor is frequently updatingPageStorageKey
to store the editor’s state.InAppWebView
or something similar under the hood, setting cacheMode: WebSettings.LOAD_CACHE_ELSE_NETWORK
in the WebView
might help reduce flickering.
Type question here. When navigate to previous sceen for a moment screen flickers
this is my code HtmlEditor( otherOptions: OtherOptions( decoration: BoxDecoration(border: Border.all(color: const Color(0xffA8AEBF)),borderRadius: BorderRadius.circular(15))), controller: htmlEditorController, callbacks: Callbacks( onChangeContent: (text) { setState(() { htmlDescription=text!; debugPrint("debug text $htmlDescription"); debugPrint("HtmlEditor content changed"); }); }, ), htmlEditorOptions: HtmlEditorOptions( adjustHeightForKeyboard: true, autoAdjustHeight: true, initialText: htmlDescription, hint: 'Your text here...', shouldEnsureVisible: false,
and having this error AndroidInAppWebViewWidget calling "dispose" using [] D/ConnectivityManager(23317): StackLog: [android.net.ConnectivityManager.unregisterNetworkCallback(ConnectivityManager.java:5075)] [org.chromium.net.a.h(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:17)] [WV.P7.a(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:3)] [org.chromium.android_webview.AwContentsLifecycleNotifier.onLastWebViewDestroyed(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:22)] [J.N.MQGusfGb(Native Method)] [WV.s6.run(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:3)] [WV.kd.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:55)] [WV.md.a(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:25)] [org.chromium.android_webview.AwContents.k(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:33)] [WV.c6.run(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:20)] D/ConnectivityManager(23317): StackLog: [android.net.ConnectivityManager.unregisterNetworkCallback(ConnectivityManager.java:5075)] [org.chromium.net.a.h(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:26)] [WV.P7.a(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:3)] [org.chromium.android_webview.AwContentsLifecycleNotifier.onLastWebViewDestroyed(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:22)] [J.N.MQGusfGb(Native Method)] [WV.s6.run(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:3)] [WV.kd.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:55)] [WV.md.a(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:25)] [org.chromium.android_webview.AwContents.k(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:33)] [WV.c6.run(chromium-TrichromeWebViewGoogle6432.aab-stable-647813433:20)] E/chromium(23317): [ERROR:aw_browser_terminator.cc(166)] Renderer process (9514) crash detected (code -1).