Skip to content

Commit

Permalink
Add setState to error
Browse files Browse the repository at this point in the history
  • Loading branch information
jajpa committed Feb 7, 2019
1 parent e9964b8 commit f49aa7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/paging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class _PaginationState<T> extends State<Pagination<T>> {
_list.addAll(list);
});
}).catchError((error) {
_isEndOfList = true;
setState(() {
_isEndOfList = true;
});
print(error);
if (widget.onError != null) {
widget.onError(error);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: paging
description: A Flutter package for paginating a list view from network or local storage
version: 0.0.7
version: 0.0.9
author: Joshua Matta<joshuamatta1996@gmail.com>
homepage: https://github.com/joshmatta/paging_library

Expand Down

0 comments on commit f49aa7b

Please sign in to comment.