widgets/custom_layout/grid_layout_delegate library

Classes

CellLayoutId
Identifies a single cell in the grid by its row and column indices.
ColumnSpan
A column's horizontal placement in content space (scroll-independent).
GridLayoutDelegate
A MultiChildLayoutDelegate that positions grid cells in viewport space.
VisibleRowRange
The (buffered) window of row indices a quadrant should build, as [firstRow, lastRow).

Functions

visibleRowRange({required double scrollOffset, required double viewportExtent, required double cacheExtent, required double rowHeight, required int rowCount}) VisibleRowRange
The row window (viewport plus cacheExtent buffer on each side) that should be built for the given scroll position, out of rowCount total rows.