sticky_grouped_list
3.1.0, released 4 years ago by begnis.dev
A scrollable list where items are grouped into sections with sticky headers.
What it does
Renders a list of items divided into groups with customizable headers. Sticky headers stay pinned at the top while scrolling through their respective group, and it supports programmatic scrolling via a custom controller.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a chat-like interface with grouped messages.
- You want section headers that stick to the top of the list during scroll.
- You need to programmatically scroll to specific indexes or elements within a grouped list.
Skip it when
- You do not need programmatic scrolling or sticky headers, where standard ListView or GroupedList would suffice.
Strengths
- Built-in sticky header support with floating and background color options.
- Supports programmatic scrolling and jumping via a specialized controller.
- Easy setup for chat interfaces by reversing the list and order.
Weaknesses
- Relies on scrollable_positioned_list, which may have different performance characteristics than standard Flutter lists.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
StickyGroupedListView<dynamic, String>(
elements: _elements,
groupBy: (dynamic element) => element['group'],
groupSeparatorBuilder: (dynamic element) => Text(element['group']),
itemBuilder: (context, dynamic element) => Text(element['name']),
)Alternatives
Packages that do the same job and could replace sticky_grouped_list.
- grouped_list
A Flutter ListView widget where list items can be grouped into sections.
50Compare - 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 - accordion
An expandable and collapsible accordion list widget for Flutter.
50Compare
Works with
Packages commonly used together with sticky_grouped_list: ones it builds on, ones built on it, and its own family.