TF-343 list scroll ot sorted well because multiple requests to back-end at the same time

This commit is contained in:
Dat PHAM HOANG
2022-03-16 12:51:33 +07:00
committed by Dat H. Pham
parent 6ea7305333
commit c0b654d5a9
3 changed files with 17 additions and 7 deletions
@@ -350,7 +350,9 @@ class ThreadView extends GetWidget<ThreadController> {
return NotificationListener<ScrollNotification>(
onNotification: (ScrollNotification scrollInfo) {
if (scrollInfo is ScrollEndNotification
&& scrollInfo.metrics.pixels == scrollInfo.metrics.maxScrollExtent) {
&& !controller.isLoadingMore
&& scrollInfo.metrics.pixels == scrollInfo.metrics.maxScrollExtent
) {
if (controller.isSearchActive()) {
controller.searchMoreEmails();
} else {