使用FlutterFragment实现Tab页面在页面切换时白屏。
使用Flutter_Boost,原生页面4个tab、3个是Flutter页面对应,使用FragmentManager的add、hide和show进行管理。
在进入二级Flutter页面后回退并切换TAB,Flutter的Tab白屏。
日志情况: W/FlutterView: Tried to send viewport metrics from Android to Flutter but this FlutterView was not attached to a FlutterEngine. I/chatty: uid=11183(XXXXXXX) identical 2 lines W/FlutterView: Tried to send viewport metrics from Android to Flutter but this FlutterView was not attached to a FlutterEngine. D/FlutterView: Attaching to a FlutterEngine: io.flutter.embedding.engine.a@ccc6c74 I/flutter: FlutterBoost#onMetohdCall didShowPageContainer I/flutter: FlutterBoost#_refreshOverlayEntries in setState I/flutter: FlutterBoost#ContainerObserver#2 didOnstage
FlutterSDK:v1.12.13+hotfix.9
不只页面跳转,锁屏,home,都会白屏闪烁
这个问题已经解决,是我们在做Fragment的show\hide操作是没有注意顺序,存在先show后hide的情况导致某一时刻同时有两个Fragment在show状态,引擎共用就出问题了。
我这不存在先show后hide情况,也出现页面跳转,锁屏,home,都会白屏闪烁。有彻底解决的方法吗
@gjhappyyy 我碰到的问题跟你一样,你是怎么解决的呢
这个问题是怎么解决的?
好像问题还是没解决额