grouped_list
6.0.0, released 2 years ago by begnis.dev
A Flutter ListView widget where list items can be grouped into sections.
What it does
Provides a GroupedListView and SilverGroupedListView that automatically segment items into sections based on a grouping function. Supports custom headers, footers, sticky headers, and sorting for both items and groups.
AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display a list of items categorized into groups with section headers
- You want support for sticky group headers or chat-style reverse lists
Skip it when
- You only need a standard ungrouped ListView or a complex grid layout
Strengths
- Easy creation of chat dialogs and grouped sections
- Supports sticky group headers and floating headers
- Provides multiple builder options like indexedItemBuilder and interdependentItemBuilder
Weaknesses
- Some options of GroupedListView are currently not available in SilverGroupedListView
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
GroupedListView<dynamic, String>(
elements: _elements,
groupBy: (element) => element['group'],
groupSeparatorBuilder: (String groupByValue) => Text(groupByValue),
itemBuilder: (context, dynamic element) => Text(element['name']),
)Alternatives
Packages that do the same job and could replace grouped_list.
- sticky_grouped_list
A scrollable list where items are grouped into sections with sticky headers.
50Compare - indexed_list_view
Infinite ListView that lets you programmatically jump instantly to any item by index.
82Compare - flutter_slidable
Flutter implementation of slidable list item with directional slide actions and dismissal.
97Compare - infinite_grouped_list
Dynamic scrolling list that efficiently groups items and loads more data as the user scrolls.
79Compare