group_list_view
1.1.1, released 6 years ago by an unverified publisher
A Flutter ListView that allows you to group list items and support headers.
What it does
Provides a GroupListView widget that helps organize list items into distinct sections with headers, similar to iOS UITableView sections. It supports custom item builders, group header builders, and optional separators.
AI-written summary of version 1.1.1, 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 or sections.
- You want custom section headers for your list items similar to iOS UITableView.
Skip it when
- You only need a simple, flat list without groupings or section headers.
- You need complex sliver-based grouping (use standard Flutter slivers instead).
Strengths
- Supports group headers and list items grouping out of the box.
- Exposes all fields from the standard ListView.builder constructor.
- Supports both item and section separators.
Weaknesses
- Limited to basic grouped list scenarios.
- No specific mention of advanced performance optimization for massive virtualized trees beyond standard ListView builder capabilities.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
GroupListView(
sectionsCount: _elements.keys.toList().length,
countOfItemInSection: (int section) {
return _elements.values.toList()[section].length;
},
itemBuilder: (BuildContext context, IndexPath index) {
return Text(_elements.values.toList()[index.section][index.index]);
},
groupHeaderBuilder: (BuildContext context, int section) {
return Text(_elements.keys.toList()[section]);
},
)Alternatives
Packages that do the same job and could replace group_list_view.
- 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 - alphabet_list_view
A ListView with sticky headers and an iOS-like clickable sidebar.
76Compare - group_grid_view
A GridView widget that groups list items and supports headers and footers per section.
41Compare