sp_lazy_data_table 0.0.2
sp_lazy_data_table: ^0.0.2 copied to clipboard
sps lazy data table
customized 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 (lazy_data_table) made by Naomi, so credits to him.
| Preview |
|
Features #
- Scrollable when items overflow
- Column and row headers stay in view
- Items are loaded lazily
- Custom size for individual columns or rows.
- Themable
Getting started #
To use this widget, add sp_lazy_data_table: ^last_version to your dependencies in pubspec.yaml
Example #
to /example folder.
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")),
)
Additional information #
- Thanks Naomi
- SPISOFT