Forms and Animations with Flutter: Detecting & Handling Gestures

placeholder

Users often interact with mobile devices using gestures which are semantic actions that can update the state of the application. Flutter makes it easy to detect and handle gestures using built-in widgets. In this course you will discover how the GestureDetector in Flutter helps you detect motions in your app that are gestures. The GestureDetector allows you to configure callbacks for the specific gestures you want to handle and allows you to detect and respond to these gestures. If multiple gesture detectors are activated Flutter uses the gesture arena to disambiguate and invoke the callback on the right gestures. Next you will explore how to implement gesture detection in your application. You will learn to handle tap long press double tap and drag-related gestures. You will also configure callbacks for other states in the gesture lifecycle such as the start or end of a gesture. Finally you will see how you can override the default behavior of the gesture arena by configuring a raw gesture detector that allows multiple winners in the arena.