Datatable fixes
This commit is contained in:
parent
f9b37114b3
commit
4ea4787e6a
|
|
@ -246,7 +246,6 @@ class _EntityListState extends State<EntityList> {
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
padding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
child: PaginatedDataTable(
|
child: PaginatedDataTable(
|
||||||
//hasActionsColumn: true,
|
|
||||||
onSelectAll: (value) {
|
onSelectAll: (value) {
|
||||||
final startIndex =
|
final startIndex =
|
||||||
min(_firstRowIndex, entityList.length - 1);
|
min(_firstRowIndex, entityList.length - 1);
|
||||||
|
|
@ -287,7 +286,8 @@ class _EntityListState extends State<EntityList> {
|
||||||
source: dataTableSource,
|
source: dataTableSource,
|
||||||
sortColumnIndex: widget.tableColumns!
|
sortColumnIndex: widget.tableColumns!
|
||||||
.contains(listUIState.sortField)
|
.contains(listUIState.sortField)
|
||||||
? widget.tableColumns!.indexOf(listUIState.sortField)
|
? widget.tableColumns!.indexOf(listUIState.sortField) +
|
||||||
|
1
|
||||||
: 0,
|
: 0,
|
||||||
sortAscending: listUIState.sortAscending,
|
sortAscending: listUIState.sortAscending,
|
||||||
rowsPerPage: state.prefState.rowsPerPage,
|
rowsPerPage: state.prefState.rowsPerPage,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue