Skip to content
pubscout

grouped_list

6.0.0, released 2 years ago by begnis.dev

A Flutter ListView widget where list items can be grouped into sections.

WASM-readyQuiet but busy
$ flutter pub add grouped_list
Source repository

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.