Skip to content
pubscout

data_grid

0.1.0, released 4 years ago by an unverified publisher

High-performance data grid widget for large numeric tables with frozen headers

WASM-ready
$ flutter pub add data_grid
Source repository

What it does

Provides a grid widget that efficiently renders large numeric data sets, supports frozen header rows and columns, and offers auto-fit width columns. It includes callbacks for row taps and long presses.

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

Use it when

  • You need to display large numeric tables efficiently
  • You require frozen header rows or columns for better UX
  • You want a lightweight, declarative grid without external code generation

Skip it when

  • You need advanced sorting, filtering or pagination features
  • You are working on a very small data set where performance is not a concern
  • You require extensive customization beyond the provided API

Strengths

  • Optimized layout algorithm for large data
  • Frozen header support
  • Auto-fit width columns
  • Declarative API with callbacks

Weaknesses

  • Package is in early development; breaking changes may occur
  • Limited feature set (no sorting/filtering/pagination documented)
  • No documentation on performance benchmarks

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add to pubspec and run flutter pub get

class MyWidget extends StatelessWidget {
  const MyWidget({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Grid(
      columns: [
        GridColumn.autoFitWidth(text: "Hello"),
        GridColumn.autoFitWidth(text: "World"),
      ],
      rows: [
        GridRow(children: [
          GridCell.autoFitWidth(text: "123.12", sortValue: 123.12),
          GridCell.autoFitWidth(text: "12", sortValue: 12),
        ])
      ],
    );
  }
}

Alternatives

Packages that do the same job and could replace data_grid.