-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 同一个FragmentActivity,2个包含webview flutter 页面的Fragment,第二个打开,客户端崩溃 #1948
Comments
从描述看,这个问题的主要原因不在于是否FlutterBoost支持多引擎,而是官方的PlatformView对单引擎复用支持不太友好导致~ |
我现在在 FlutterBoostFragment 的 didFragmentHide 的时候调用detachFromEngineIfNeeded ,但是修改之后,每次切换fragment的时候,会闪一下屏,然后正常显示。 除此之外,还有什么好的方法吗? |
这个得具体问题具体分析,要看闪屏的原因是什么? |
请描述遇到的问题,以及您所期望的正确的结果
同一个FragmentActivity,2个包含webview的Fragment,使用example中 open flutter fragment page 把里面第二个和三个fragment都改成包含webview的Flutter页面(url为 platformview/simplewebview ),打开第二个fragment之后,再打开第三个fragment,客户端崩溃,错误日志如下:
请说明如何操作会遇到上述问题
同一个FragmentActivity,2个包含webview的Fragment,使用example中 open flutter fragment page 把里面第二个和三个fragment都改成包含webview的Flutter页面(url为 platformview/simplewebview ),打开第二个fragment之后,再打开第三个fragment,出现以上问题;
目前分析来看,是由于单引擎导致,这个有计划兼容吗?
在下面填入关键复现代码
使用的example 例子的 com.idlefish.flutterboost.example.tab.TabMainActivity 页面,修改代码如下:
复现的平台
Android
Flutter SDK版本
3.7.7
FlutterBoost版本
4.4.2
是否延迟初始化FlutterBoost
No
解决方案
The text was updated successfully, but these errors were encountered: