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