Open hacker1024 opened 5 years ago
At the moment, the following workaround is an option:
int _totalItems;
...
Pagination<Data>(
pageBuilder: (currentSize) async {
if (currentSize == _totalItems) return const [];
final data = await getData(currentSize);
_totalItems = data.totalItems;
return data;
},
itemBuilder: ...
);
This should be possible so the loading widget isn't shown at the end of the list.