flutter_boost
flutter_boost copied to clipboard
iOS present lifecycle not execute
flutter version:1.12.13 hotfix8 从一个flutter页面经过flutterboost present跳转到另一个flutter页面后异常,界面不能响应,没有attach. 用navigator push 或 pop没有问题. 调试发现使用present后FLBContainer的lifecycle没有执行,所以界面异常,请问这块有没有解决方案吗?
vc.modalPresentationStyle = UIModalPresentationOverCurrentContext|UIModalPresentationFullScreen; 这里我设置了这句话
present的时候可能上一个页面的viewdisappear在新页面的viewappear之后,这时候可能就不能响应了。试试在completeHandler里再次调用viewwillappear
在native侧FLBPlatform协议present对应方法的实现中,主动去调用presentingVC的beginAppearanceTransition相关方法,这样它的生命周期就会恢复正常