We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @xyarim I saw that in the file photo_list_bloc.dart there are two bugs!
I fixed like following:
if (currentState is InitialPhotoListState) { final photos = await photoRepository.getPhotos(1); yield PhotoListLoaded(photos, 1); } else if (currentState is PhotoListLoaded) { int currentPage = currentState.page + 1; final photos = await photoRepository.getPhotos(currentPage); print("current_page = $currentPage"); yield photos.isEmpty ? currentState.copyWith(photos) : PhotoListLoaded(currentState.photos + photos, currentPage); }
I hope you'll enjoy it!
Angelo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @xyarim
I saw that in the file photo_list_bloc.dart there are two bugs!
I fixed like following:
I hope you'll enjoy it!
Angelo
The text was updated successfully, but these errors were encountered: