Expand description
Section grouping for GridView.
A SectionProvider partitions the flat model into named sections; the
grid renders a header above each section’s tile band and (optionally)
keeps the current section’s header pinned to the top while scrolling.
Sections compose with the uniform tile layout.
Structs§
- Grouping
Sections - A
SectionProviderbuilt by partitioning consecutive equal-key runs of an (already ordered) model. The titles come from each run’s key.
Traits§
- Section
Provider - Partitions a flat model into display sections.
Functions§
- grouping_
sections - Build a
SectionProviderby grouping consecutive items ofmodelthat share akey_fnvalue into one section, titled by the key. The model is not sorted — callers should pre-sort if they want fully-grouped sections.