From 4ea4787e6af78377f6f8c696a35ea70ac34b8b9b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Oct 2023 23:25:30 +0300 Subject: [PATCH] Datatable fixes --- lib/ui/app/tables/entity_list.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/app/tables/entity_list.dart b/lib/ui/app/tables/entity_list.dart index e90e6f3b1..5eba0cf5a 100644 --- a/lib/ui/app/tables/entity_list.dart +++ b/lib/ui/app/tables/entity_list.dart @@ -246,7 +246,6 @@ class _EntityListState extends State { 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 { 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,