Add Material touch ripples

Implement swipe to dismiss

Handle taps

Cookbook

Gestures

Handle taps

Notes

Interactive example

You not only want to display information to users,
you want users to interact with your app.
Use the GestureDetector widget to respond
to fundamental actions, such as tapping and dragging.

Note:
  To learn more, watch this short Widget of the Week video on the GestureDetector widget:

This recipe shows how to make a custom button that shows
a snackbar when tapped with the following steps:

Create the button.

Wrap it in a GestureDetector that an onTap() callback.

Notes

For information on adding the Material ripple effect to your
button, see the Add Material touch ripples recipe.