stacked_listview
1.0.4, released 4 years ago by an unverified publisher
A ListView where children stack when scrolling with swipe-to-remove support.
What it does
Provides a specialized ListView widget where children stack at the beginning during scroll operations. It includes item removal functionality supporting swipe directions and callback hooks before and during removal.
AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a stack-on-scroll list effect for cards or items
- You need swipe-to-delete interactions with direction detection
Skip it when
- You require a standard linear list or grid view
- You do not need stacked scrolling animations
Strengths
- Supports swipe direction detection for removal callbacks
- Easy to integrate into standard widget trees
Weaknesses
- Very narrow use case limited to stacked list effects
- Limited documentation beyond basic example
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
StackedListView(
itemCount: data.length,
itemExtent: 100,
onRemove: (index, direction) {
setState(() {
data.removeAt(index);
});
},
builder: (_, index) {
return Text(data[index]);
},
)Alternatives
Packages that do the same job and could replace stacked_listview.
- flutter_reorderable_grid_view
Animated GridViews and Wraps with drag-and-drop reordering and item animations.
91Compare - inview_notifier_list
Builds a ListView or CustomScrollView and notifies when widgets are on screen.
67Compare - indexed_list_view
Infinite ListView that lets you programmatically jump instantly to any item by index.
82Compare - nested_scroll_views
Flutter nested scrolling with drag handoff at scroll boundaries for multiple scroll views.
76Compare