mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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.