11
Applying Interactivity
WHAT YOU WILL LEARN IN THIS CHAPTER
- How to use
GestureDetector
, which recognizes gestures such as tap, double tap, long press, pan, vertical drag, horizontal drag, and scale. - How to use the
Draggable
widget that is dragged to aDragTarget
. - How to use the
DragTarget
widget that receives data from aDraggable
. - How to use the
InkWell
andInkResponse
widgets. You will learn thatInkWell
is a rectangular area that responds to touch and clips splashes within its area. You'll learn thatInkResponse
responds to touch and that splashes expand outside its area. - How to use the
Dismissible
widget that is dismissed by dragging.
In this chapter, you'll learn how to add interactivity to an app by using gestures. In a mobile application, gestures are the heart of listening to user interaction. Making use of gestures can define an app with a great UX. Overusing gestures when they don't add value or convey an action creates a poor UX. You'll take a closer...