Skip to content
pubscout

table_sticky_headers

2.0.5, released 4 years ago by an unverified publisher

A two-dimensional table widget with both sticky headers and a sticky legend cell.

WASM-ready
$ flutter pub add table_sticky_headers
Source repository

What it does

Allows developers to display a two-dimensional grid of data where both the top row and left column headers remain visible during horizontal and vertical scrolling. The cells are fully customizable using widget builders.

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

Use it when

  • You need to display tabular data with fixed headers that do not scroll out of view
  • You require custom widgets and interactions inside table cells

Skip it when

  • You need a simple vertical-only list or standard data table without a sticky top header and sticky left column

Strengths

  • Both top and left headers always stay visible while scrolling in any direction
  • Fully customizable cell contents, dimensions, alignments, and tap handlers
  • Supports custom scroll controllers and initial scroll offsets

Weaknesses

  • The project is currently in support-only mode
  • Custom scroll controllers require manual disposal by the developer to avoid leaks

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
StickyHeadersTable(
  columnsLength: titleColumn.length,
  rowsLength: titleRow.length,
  columnsTitleBuilder: (i) => Text(titleColumn[i]),
  rowsTitleBuilder: (i) => Text(titleRow[i]),
  contentCellBuilder: (i, j) => Text(data[i][j]),
  legendCell: Text('Sticky Legend'),
)

Alternatives

Packages that do the same job and could replace table_sticky_headers.