tomasweigenast / paged-datatable

A DataTable widget for Flutter that supports cursor/offset pagination, filters and sorting
https://pub.dev/packages/paged_datatable
MIT License
15 stars 11 forks source link

Seems the widget is not updated when orderby changes #21

Closed LAMXkE closed 2 months ago

LAMXkE commented 2 months ago

Hi

I'm trying to sort List by using sortable: true option of TableColumn

And it seems the widget is showing previous datas.

I have to manually press refresh button to update my rows.

Your demo page seems to have a same problem. sorting by Gender column does not work at all until pressing refresh.

LAMXkE commented 2 months ago

I've figured out that in controller.dart:390 is the main problem

If I comment the whole block below and put

_currentDataset.clear();
_currentDataset.addAll(items);

it seems to be working.

tomasweigenast commented 2 months ago

Closed as fixed in 2.0.1