lazy_data_table 0.1.4 copy "lazy_data_table: ^0.1.4" to clipboard
lazy_data_table: ^0.1.4 copied to clipboard

outdated

A Flutter data table with (optional) sticky row and/or column headers that loads the contents lazily.

example/lib/main.dart

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: 100,
          columns: 100,
          tableDimensions: DataTableDimensions(
            cellHeight: 50,
            cellWidth: 100,
            columnHeaderHeight: 50,
            rowHeaderWidth: 75,
          ),
          tableTheme: DataTableTheme(
            columnHeaderBorder: Border.all(color: Colors.black38),
            rowHeaderBorder: Border.all(color: Colors.black38),
            cellBorder: Border.all(color: Colors.black12),
            cornerBorder: Border.all(color: Colors.black38),
            columnHeaderColor: Colors.white60,
            rowHeaderColor: Colors.white60,
            cellColor: Colors.white,
            cornerColor: Colors.white38,
          ),
          columnHeaderBuilder: (i) => Center(child: Text("Column: ${i + 1}")),
          rowHeaderBuilder: (i) => Center(child: Text("Row: ${i + 1}")),
          dataCellBuilder: (i, j) => Center(child: Text("Cell: $i, $j")),
          cornerWidget: Center(child: Text("Corner")),
        ),
      ),
    ),
  );
}
65
likes
0
pub points
84%
popularity

Publisher

unverified uploader

A Flutter data table with (optional) sticky row and/or column headers that loads the contents lazily.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on lazy_data_table