Understanding Flutter's handling of Gestures
summary
Explains the exact Flutter pipeline: pointer down/move/up flows through platform dispatcher, hit testing in the render tree, dispatch to RenderPointerListener and RawGestureDetector which registers GestureRecognizers via the pointer router, then conflict resolution in the gesture arena. Claims GestureDetector covers about 95% of needs, shows how to extend recognizers (example triple tap and rotation via ScaleGestureRecognizer), shows Listener for non-arena raw pointers, and tests everything with WidgetTester/TestGesture down move up; repository sandbox is available.
AI-written summary · about
chapters (8)
- 0:00Introduction to gesture handling
- 1:32Deep dive into raw gestures
- 2:44Flutter gesture internals
- 7:52Implementing custom recognizers
- 14:48Hit test behaviors
- 21:00The gesture arena and listeners
- 25:51Testing gestures in Flutter
- 31:14Summary and resources
related talks
30mGladiator in the Gesture Arena
31mHow Flutter works under the hood
49mFirst Flutter, then Fly: Build Reactive & Performant Cross-Platform Apps
32mHands on Flutter
28mHow Flutter works under the hood
41mFlutter under the hood. What makes Flutter tick
32m"Flutter: How we're building a UI framework for tomorrow at Google"
43mPortable Material: Flutter physical models
