swipe_deck
1.1.0, released 5 years ago by retroportalstudio.com
A Flutter widget that shows a stack of cards swipable like the iMessage image picker.
WASM-ready
What it does
It presents a list of widgets as a swipeable deck where the top card can be swiped left or right. Callbacks inform you of swipe direction and the current index, and you can adjust the spread of background cards.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple swipe‑through UI for images or cards
- You want quick integration with minimal configuration
Skip it when
- You require complex animations or highly custom gestures
- You need advanced pagination or data loading logic
Strengths
- Very easy to add to a project
- Provides left/right swipe callbacks and index tracking
- Allows basic visual customization of card spread
Weaknesses
- Limited to basic swipe behavior
- Few customization options beyond spread and callbacks
- No built‑in support for lazy loading or pagination
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
SwipeDeck(
startIndex: 0,
onSwipeLeft: () => print('left'),
onSwipeRight: () => print('right'),
onChange: (i) => print('index $i'),
widgets: images.map((e) => Image.asset('assets/$e.jpg')).toList(),
);Alternatives
Packages that do the same job and could replace swipe_deck.
- flutter_ruler_picker
A ruler‑style picker widget for Flutter.
42Compare
Works with
Packages commonly used together with swipe_deck: ones it builds on, ones built on it, and its own family.