~/talk

Understanding Flutter's handling of Gestures

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [web-platform]
links:none on file
slides:none on file

Shows how Flutter routes pointer events through GestureBinding and hit testing, then builds a V-shaped GestureRecognizer using RawGestureDetector that tracks pointer down/move/up and successfully recognizes only V strokes in the demo. Explains hitTestBehavior differences (opaque / translucent / deferToChild) and why overlapping handlers lose taps to the Gesture Arena, then fixes it by using a low-level Listener to receive all pointer callbacks so both overlay and underlying button fire. Tests run with WidgetTester simulating pointer sequences.

AI-written summary · about

  1. 0:00Introduction to gestures
  2. 1:07Classic gesture handling
  3. 2:31Custom gesture recognizers
  4. 8:35Building a V gesture detector
  5. 12:12Overlapping gesture handlers
  6. 13:39Hit test behavior explained
  7. 19:40Gesture arena and disambiguation
  8. 21:05Listener vs gesture detector
  9. 23:11Testing gestures in Flutter
  10. 26:01Summary and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.