swipeable_tile
2.0.1, released 3 years ago by waterydesert.com
Flutter widget to dismiss or trigger actions with animated background and corners.
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.
- flutter_dismissible_tile
A dismissible tile widget with animated customizable background and overlays on swipe.
39Compare - flutter_moving_background
Flutter package for animated moving backgrounds like gradients, particles, waves and rain.
65Compare - spinning_wheel
Customizable animated spinning wheel for Flutter with weighted odds and themes.
65Compare - keyboard_service
Keyboard visibility tracking and automatic dismissal without native plugins
59Compare