Skip to content
pubscout

swipeable_tile

2.0.1, released 3 years ago by waterydesert.com

Flutter widget to dismiss or trigger actions with animated background and corners.

WASM-ready
$ flutter pub add swipeable_tile
Source repository

What it does

A fork of Dismissible that allows animated rounded corners, elevation changes, background animations during swiping, and swipe-to-trigger actions without dismissing the tile.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need swipe-to-dismiss behavior with custom animated backgrounds and rounded corners similar to modern mobile apps.
  • You need a swipe-to-trigger action without actually dismissing the tile.

Skip it when

  • You need vertical, up and down swiping.
  • You need a standard simple Dismissible widget without custom background animation requirements.

Strengths

  • Supports animated backgrounds and progress tracking via backgroundBuilder.
  • Provides card constructors with constant rounded corners and custom shadows.
  • Supports swipe-to-trigger actions instead of only dismissal.

Weaknesses

  • Does not support vertical, up and down swipe directions.
  • Cannot call setState directly from backgroundBuilder.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

SwipeableTile(
  color: Colors.white,
  swipeThreshold: 0.2,
  direction: SwipeDirection.horizontal,
  onSwiped: (direction) {},
  backgroundBuilder: (context, direction, progress) {
    return Container();
  },
  key: UniqueKey(),
  child: Container(),
)

Alternatives

Packages that do the same job and could replace swipeable_tile.