Skip to content
pubscout

section_view

2.0.6, released 3 years ago by an unverified publisher

Provides a section list view widget with alphabet indexer and refresh support.

WASM-ready
$ flutter pub add section_view
Source repository

What it does

Allows developers to display grouped list data with section headers, alphabet indexes, and customizable refresh controls. It supports sticky headers and fully custom builders for items, headers, and alphabets.

AI-written summary of version 2.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display a contact-list style view grouped by alphabetic sections.
  • You want section headers that stick while scrolling through grouped data.

Skip it when

  • You do not need sectioned data or alphabet navigation.
  • You are looking for a state-management or networking solution.

Strengths

  • Supports alphabet navigation and jumping
  • Provides sticky header functionality via flutter_list_view
  • Highly customizable through builders

Weaknesses

  • Tailer load-more functionality is listed as a Todo and is not provided natively
  • Limited built-in categories and documentation for complex use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
SectionView<GroupModel, ItemModel>(
  source: data,
  onFetchListData: (header) => header.items,
  headerBuilder: getDefaultHeaderBuilder((d) => d.name,
      bkColor: Colors.green,
      style:
          const TextStyle(fontSize: 18, color: Colors.white)),
  itemBuilder:
      (context, itemData, itemIndex, headerData, headerIndex) =>
          ListTile(
            title: Text(itemData.name),
          ))

Alternatives

Packages that do the same job and could replace section_view.

Works with

Packages commonly used together with section_view: ones it builds on, ones built on it, and its own family.