Fix the iOS accessibility tree structure of platform views. (#8731)
Partially fix the issue in flutter/flutter#30804. This only fixes the focus issue for other platform views (Google maps and other custom platform views), but the same issue on WebView is not fixed. Before the change, the a11y tree with platform view looks like ``` <some parent a11y container> <SemanticsObject for platform view> <FlutterPlatformViewSemanticsContainer> <platform view> ``` After the change, it looks like ``` <some parent a11y container> <FlutterPlatformViewSemanticsContainer> <SemanticsObject> <platform view> ``` This PR also updated the implementation of FlutterPlatformViewSemanticsContainer to use A11yContainer protocol to implement the details on various a11y attribute including the accessibilityFrame and accessibilityScroll.
Showing
想要评论请 注册 或 登录