Delay platform view removal to submitFrame. (#8380)
Remove platform views inside OnDispose might cause issue if it happens before SubmitFrame and the active_composition_order has not been updated. We will be left at a situation where the active_composition_order still contains the old view, but the view is actually removed from the UIView hierarchy. We now cache the views need to be removed in OnDispose and actually remove them in SubmitFrame. At the same time, we remove stop detaching the subviews if they were disposed. As a side effect, this update will also fix flutter/flutter#30220
Showing
想要评论请 注册 或 登录