You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Check the dispose Method: Make sure the htmlEditorController is properly disposed when the widget is removed.
Avoid Frequent setState Calls: Calling setState on every onChangeContent can be resource-intensive and could contribute to flickering, especially if the editor is frequently updating
Cache the Editor State: To avoid reloading the editor from scratch when navigating back, you could use a PageStorageKey to store the editor’s state.
If you’re using 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).
The text was updated successfully, but these errors were encountered: