maxim-saplin / data_table_2

In-place substitute for Flutter's DataTable and PaginatedDataTable with fixed/sticky header and extra features
https://pub.dev/packages/data_table_2
BSD 3-Clause "New" or "Revised" License
202 stars 135 forks source link

Hide empty rows #251

Closed javaone199 closed 7 months ago

javaone199 commented 7 months ago

PaginatedDataTable2( renderEmptyRowsInTheEnd: false, ... );

If rowsPerPage is 20, and the last page has 10 data rows, there will be 10 empty rows in the last page. Add an option for removing the empty rows. For mobile device like iphone, having so much blank space is not ideal. It is ok to expand/shrink the table height while paginating.

PaginatedDataTable2( renderEmptyRowsInTheEnd: false, hideEmptyRowsInTheEnd: true, ... rowsPerPage: 20, );

maxim-saplin commented 7 months ago

Don't get it

javaone199 commented 6 months ago

Hide the empty rows. Currently it has a blank space if rowsPerPage is 20, and the last page has one item only. Thanks.