setState(() {
final oldList = _pagingController.itemList;
final newList = oldList…removeAt(0);
_pagingController.itemList = newList;
});
It works for me, many thanks
Great job with the tutorial!
Any suggestions for implementing bidirectional lazy loading based on infinite_scroll_pagination, which seems to be quite a mature package?
Struggling with a calendar application. Obvious use case - start off with today’s entries and scroll back or forward chronologically. Dataset in question currently has 16K+ entries and stretches way back into 2008 and forward into next 2-3 months.
In “paged_article_list_view.dart”, inside initState(), when we call _pagingController.addPageRequestListener((pageKey) {_fetchPage(pageKey);});, what exactly is pageKey and how is it defined?
I believe it is endpoint used to identify pages - similar to firstPageKey. But how is it initialized / defined?