Skip to content

Commit

Permalink
Hide bottom loading indicator when we do a pull-to-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
PVGeorgievPrime committed Feb 14, 2024
1 parent ec476fc commit 14dbccf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rx_bloc_list/lib/src/models/paginated_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class PaginatedList<E> extends ListBase<E> {
bool get isInitialLoading => isLoading && list.isEmpty && !_isInitialized;

/// Getter for telling us whether we are loading a new page.
bool get isNextPageLoading => isLoading && list.isNotEmpty;
bool get isNextPageLoading =>
isLoading && list.isNotEmpty && _backupList.isEmpty;

@override
E operator [](int index) => list[index];
Expand Down

0 comments on commit 14dbccf

Please sign in to comment.