'Flutter scroll control app block(cannot understand what does this do)
_scrollController ..addListener(() { final triggerFetchMoreSize = 0.7 * _scrollController.position.maxScrollExtent;
if (_scrollController.position.pixels > triggerFetchMoreSize) {
if (hasMore &&
currentEndPosition < currentCount &&
!loading &&
!inErrorState) {
setState(() {
loading = true;
currentStartPosition = currentEndPosition;
currentEndPosition =
min(currentStartPosition + pageCount, currentCount);
});
}
}
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
