forked from eatvio/eatvio_app
fixed pagination
This commit is contained in:
@@ -115,7 +115,7 @@ class DietsCubit extends Cubit<DietsState> {
|
||||
}
|
||||
}
|
||||
|
||||
loadNextPage() async {
|
||||
Future<void> loadNextPage() async {
|
||||
if (currentPage < lastPage && !isLoading) {
|
||||
isLoading = true;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class FeedCubit extends Cubit<FeedState> {
|
||||
}
|
||||
}
|
||||
|
||||
loadNextPage() async {
|
||||
Future<void> loadNextPage() async {
|
||||
if (currentPage < lastPage && !isLoading) {
|
||||
isLoading = true;
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ class PlansCubit extends Cubit<PlansState> {
|
||||
}
|
||||
}
|
||||
|
||||
loadNextPage() async {
|
||||
Future<void> loadNextPage() async {
|
||||
if (currentPage < lastPage && !isLoading) {
|
||||
isLoading = true;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ class RecipesCubit extends Cubit<RecipesState> {
|
||||
}
|
||||
}
|
||||
|
||||
loadNextPage() async {
|
||||
Future<void> loadNextPage() async {
|
||||
if (currentPage < lastPage && !isLoading) {
|
||||
isLoading = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user