Wrap each item in a Dismissible widget.

Provide “leave behind” indicators.

1. Create a list of items

First, create a list of items. For detailed
instructions on how to create a list,
follow the Working with long lists recipe.

Create a data source

In this example,
you want 20 sample items to work with.
To keep it simple, generate a list of strings.

Convert the data source into a list

Display each item in the list on screen. Users won’t
be able to swipe these items away just yet.

2. Wrap each item in a Dismissible widget

In this step,
give users the ability to swipe an item off the list by using the
Dismissible widget.