The TransparentPointer
Control
#658
-
I am just from seeing this control in the python sdk, but don't think it has already been mentioned in the docs, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So, it's a solution for the problem from here: https://stackoverflow.com/questions/65269190/pass-trough-all-gestures-between-two-widgets-in-stack Imagine if you have an Look at the same usage here: https://github.com/flet-dev/flet/blob/main/studio/server/main.py#L49-L61 Whatever clickable controls you have inside Would Flet community benefit from that control, so I have to document it? |
Beta Was this translation helpful? Give feedback.
So, it's a solution for the problem from here: https://stackoverflow.com/questions/65269190/pass-trough-all-gestures-between-two-widgets-in-stack
Imagine if you have an
ElevatedButton
insideContainer
withGestureDetector
then tapping on a button won't be visible to a gesture detector behind it. WithTransparentPointer
a tapping event doesn't stop on a button, but goes up to the parent, kind of event bubbling in HTML/JS.Look at the same usage here: https://github.com/flet-dev/flet/blob/main/studio/server/main.py#L49-L61
Whatever clickable controls you have inside
FletApp
container all their events are visible to gesture detector.Would Flet community benefit from that control, so I have …