Skip to content
pubscout

material_table_view

5.5.2, released a year ago by nikolaynik.com

Feature-rich data table widget for Flutter with virtualization and frozen columns.

WASM-ready
$ flutter pub add material_table_view
Source repository

What it does

Provides a comprehensive table view solution with horizontal and vertical scrolling, fixed-width frozen columns, lazy row building for large datasets, and custom cell and row styling widgets.

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

Use it when

  • You need to display massive datasets with millions of rows efficiently using virtualization.
  • Your table requires sticky or frozen columns that stay on screen during horizontal scrolling.

Skip it when

  • You need to wrap table rows in widgets that require compositing like standard Opacity or RepaintBoundary without package alternatives.
  • You want built-in state management for sorting and filtering.

Strengths

  • Supports billions of rows via lazy building (virtualization).
  • Frozen columns with automatic responsiveness and unfrozen fallback priorities.
  • Sliver variant for integration into CustomScrollViews.

Weaknesses

  • Strict limitations on row-wrapping widgets due to custom composition optimizations.
  • State management is completely left to the developer.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
TableView.builder(
  columns: [
    const TableColumn(width: 56.0, freezePriority: 100),
    for (var i = 1; i < 100; i++) const TableColumn(width: 64),
  ],
  rowCount: 1048576,
  rowHeight: 56.0,
  rowBuilder: (context, row, contentBuilder) {
    return Material(
      type: MaterialType.transparency,
      child: InkWell(
        onTap: () => print('Row $row clicked'),
        child: contentBuilder(
          context,
          (context, column) => Text('$column'),
        ),
      ),
    );
  },
)

Alternatives

Packages that do the same job and could replace material_table_view.

Works with

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