mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
In certain situations, semantics elements get assigned `pointer-events: none` when they aren't supposed to. One such situation is when a text field has a [decoration error text](https://api.flutter.dev/flutter/material/InputDecoration/errorText.html). The semantics node become a container, and we always set `pointer-events: none` on container nodes. This PR introduces an `acceptsPointerEvents` getter on `SemanticRole` and `SemanticBehavior` to control when `pointer-events` should be `all` or `none`. Fixes https://github.com/flutter/flutter/issues/141975