lazy_data_table

Last updated:

0 purchases

lazy_data_table Image
lazy_data_table Images
Add to Cart

Description:

lazy data table

lazy_data_table #
A Flutter widget data table that can be loaded lazily. The table also has a column header row and a row header column that will stay in view.
(This widget is still in development, and may not work 100%)
This widget is based on table-sticky-headers made by Alex Bacich, so credits to him.
Features #

Scrollable when items overflow
Column and row headers stay in view
Items are loaded lazily
Custom size for individual columns or rows.
Themable


Usage #
To use this widget, add lazy_data_table: ^0.3.1 to your dependencies in pubspec.yaml
dependencies:
lazy_data_table: ^0.3.1
copied to clipboard
Then the package can be included in a file with:
import 'package:lazy_data_table/lazy_data_table.dart';
copied to clipboard
And then the LazyDataTable can be used as following:
(This example is used to create the table in the gif above)
LazyDataTable(
rows: 100,
columns: 100,
tableDimensions: LazyDataTableDimensions(
cellHeight: 50,
cellWidth: 100,
topHeaderHeight: 50,
leftHeaderWidth: 75,
),
topHeaderBuilder: (i) => Center(child: Text("Column: ${i + 1}")),
leftHeaderBuilder: (i) => Center(child: Text("Row: ${i + 1}")),
dataCellBuilder: (i, j) => Center(child: Text("Cell: $i, $j")),
topLeftCornerWidget: Center(child: Text("Corner")),
)
copied to clipboard
Issues #
If you have any problems or even suggestions feel free leave them here

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.