lazy_data_table 0.1.2 lazy_data_table: ^0.1.2 copied to clipboard
A Flutter data table with (optional) sticky row and/or column headers that loads the contents lazily.
import 'package:flutter/material.dart';
import 'package:lazy_data_table/lazy_data_table.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("Example table")),
body: LazyDataTable(
rows: 20,
columns: 20,
cellHeight: 50,
cellWidth: 50,
columnHeaderHeight: 75,
rowHeaderWidth: 75,
columnHeaderBuilder: (i) => Text("Col:${i + 1}"),
rowHeaderBuilder: (i) => Text("Row:${i + 1}"),
dataCellBuilder: (i, j) => Text("Cell:$i,$j"),
cornerWidget: Text("Corner"),
),
),
),
);
}