flutter tutorial: Implement swipe to dismiss | Flutter

Опубликовано: 07 Октябрь 2024
на канале: Code with Benji
172
3

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:

1:Create a list of items.
2:Wrap each item in a Dismissible widget.
3:Provide “leave behind” indicators.