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.
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.
- country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - vertical_scrollable_tabview
A Flutter widget that synchronizes a ScrollView and a custom tab view.
56Compare - flutter_reorderable_list
Reorderable list for Flutter supporting slivers and large items
50Compare - enhanced_paginated_view
A customizable Flutter widget for paginated lists, grids, and slivers with pull-to-refresh.
65Compare
Works with
Packages commonly used together with section_view: ones it builds on, ones built on it, and its own family.