sticky_infinite_list
5.0.0, released 2 months ago by an unverified publisher
Infinite scroll list with sticky headers supporting multiple directions.
What it does
Renders an infinite list in both vertical and horizontal directions with sticky headers. It allows customizable header positioning, dynamic sizing, and doesn't rely on any third-party dependencies or native code.
AI-written summary of version 5.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an infinite scroll list with sticky headers.
- You need multi-directional scrolling (both forward and backward, or horizontal).
- You want custom positioning and alignment for list headers.
Skip it when
- You need a standard single-direction finite list where a basic ListView or CustomScrollView is sufficient.
- You are using a Flutter version lower than 3.41.
Strengths
- Supports multi-directional infinite lists with sticky headers.
- Highly customizable header positioning and cross/main-axis alignment.
- No third-party or native dependencies.
Weaknesses
- Does not natively support the `CustomScrollView.reverse` option (requires anchor workarounds).
- Requires Flutter 3.41 or higher in version 5.0.0.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
InfiniteList(
builder: (BuildContext context, int index) {
return InfiniteListItem(
headerBuilder: (BuildContext context) {
return Container();
},
contentBuilder: (BuildContext context) {
return Container();
},
);
},
)Alternatives
Packages that do the same job and could replace sticky_infinite_list.
- flutter_sticky_header
Flutter sliver implementation of sticky headers for CustomScrollView.
91Compare - alphabet_list_view
A ListView with sticky headers and an iOS-like clickable sidebar.
76Compare - country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - flutter_reorderable_list
Reorderable list for Flutter supporting slivers and large items
50Compare