Justin McCandless e244168327
Platform views shouldn't receive pointer events when not laid out (#172043)
This PR makes platform views ignore pointer events when they're not laid
out.

Platform views register themselves for global pointer events when their
RenderBox attaches:


9c626d9f9a/packages/flutter/lib/src/rendering/platform_view.dart (L370-L380)

But a RenderBox that is attached is not necessarily laid out. The
problem in the issue seemed to be that a page was created offscreen
(attached and not laid out), but it still received pointer events, and
this caused errors with using `size` before layout.

This PR simply ignores pointer events when not laid out.

Fixes https://github.com/flutter/flutter/issues/83481
2025-07-17 21:12:02 +00:00
..
2025-06-24 00:10:55 +00:00
2024-12-19 20:06:21 +00:00