diff --git a/lib/view/home_page/home_page.dart b/lib/view/home_page/home_page.dart index 5591831..4fead2a 100644 --- a/lib/view/home_page/home_page.dart +++ b/lib/view/home_page/home_page.dart @@ -160,7 +160,9 @@ class _BodyState extends State<_Body> { } Future _onRefresh() { - context.read().add(HomeLoadDataEvent(search: searchController.text)); + context + .read() + .add(HomeLoadDataEvent(search: searchController.text)); return Future.value(null); } @@ -196,7 +198,7 @@ class _BodyState extends State<_Body> { } void _onNextPageListener() { - if (scrollController.offset > scrollController.position.maxScrollExtent) { + if (scrollController.offset >= scrollController.position.maxScrollExtent) { // preventing multiple pagination request on multiple swipes final bloc = context.read(); if (!bloc.state.isPaginationLoading) {