Skip to content
Discussion options

You must be logged in to vote

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 inside Container with GestureDetector then tapping on a button won't be visible to a gesture detector behind it. With TransparentPointer 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 …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ndonkoHenri
Comment options

ndonkoHenri Dec 4, 2022
Collaborator Author

@FeodorFitsner
Comment options

Answer selected by ndonkoHenri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants