Handle taps

Display images from the internet

Implement swipe to dismiss

Cookbook

Gestures

Implement swipe to dismiss

1. Create a list of items

Create a data source
Convert the data source into a list

2. Wrap each item in a Dismissible widget

3. Provide “leave behind” indicators

Interactive example

The “swipe to dismiss” pattern is common in many mobile apps.
For example, when writing an email app,
you might want to allow a user to swipe away
email messages to delete them from a list.

Flutter makes this task easy by providing the
Dismissible widget.
Learn how to implement swipe to dismiss with the following steps:

Create a list of items.

Wrap each item in a Dismissible widget.