[Feature] Is it possible to make infinite scroll?
If possible, is there any sample code?
I mean something like this: https://flutter.syncfusion.com/#/datagrid/load-more-behavior/infinite-scrolling
@soft24 It currently does not offer infinite scrolling. You can implement it yourself, but I'll consider adding a feature. thank you.
This issue is stale because it has been open for 30 days with no activity.
If possible, is there any sample code?
I mean something like this: https://flutter.syncfusion.com/#/datagrid/load-more-behavior/infinite-scrolling
I have implemented infinite scrolling in one of my projects by inserting the rows accordingly. Here is my insertRows routine.
` void insertRows(int index, List
for (int i = 0; i < items.length; i++) {
item = items[i];
newRows.add(_createRow(item));
}
if (plutoGridStateManager!=null) plutoGridStateManager!.insertRows(index, newRows);
}`
You can listen for an event when the end of the grid is reached as shown below.
stateManager.eventManager!.listener((PlutoGridEvent plutoEvent) {
if (plutoEvent is PlutoGridCannotMoveCurrentCellEvent && plutoEvent.direction.isDown) {
// do something like insertRows or stateManager.setShowLoading.
}
}
stateManager.scroll.bodyRowsVertical also references ScrollColtroller. With this you can add rows same as above when scrolling reaches the end.
Of course, there are plans to provide it simply as a function of PlutoGrid.
Released PlutoGrid 5.3.0
Refer to below link. https://github.com/bosskmk/pluto_grid/issues/601
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.