admin管理员组文章数量:1391951
In HitTestBehavior Flutter docs we can see that:
opaque → Opaque targets can be hit by hit tests, causing them to both receive events within their bounds and prevent targets visually behind them from also receiving events.
translucent → Translucent targets both receive events within their bounds and permit targets visually behind them to also receive events.
but that is not what my tests show.
When placing Listeners as children of a Listener the top Listeners behave as translucent no matter its set behavior both for onPointerDown and onPointerUp events. The blue square is set to opaque and the red one is set to translucent.
When placing Listeners as Stack children the last Listeners behave as opaque no matter its set behavior both for onPointerDown and onPointerUp events. Again the blue square is set to opaque and the red one is set to translucent.
No matter how I place the Listeners, they seem to never behave as documented.
How to make Listener behavior parameter work as documented in Flutter?
Or is it a bug?
本文标签: How to make Listener behavior parameter work as documented in FlutterStack Overflow
版权声明:本文标题:How to make Listener behavior parameter work as documented in Flutter? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744735075a2622277.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论