Piwigo / piwigo-flutter-app

Piwigo mobile application for Android
GNU General Public License v2.0
83 stars 26 forks source link

Piwigo NG 2.0.3 cannot display more than two pages of search results #159

Closed wittypluck closed 12 months ago

wittypluck commented 1 year ago

Hello, Thanks for the great improvements in v2 beta. It seems the search results cannot scroll down more than two pages. When scrolling down a large number of results, instead of loading pictures of pages 3 or more, it keeps displaying page 2 again and again. So search results show: Page 1, page 2, page 2, page 2, page 2... Instead of : Page 1, page 2, page 3, page 4, page 5...

I don't know flutter but from a quick look at the code, it seems in the function _loadMoreImages in image_search_view_page.dart, the variable _page might never incremented. So this call keeps loading page 2: searchImages(_searchText, _page + 1);

Piwigo NG: 2.0.3-beta Piwigo: 13.7.0

Thanks!

remi-martin commented 1 year ago

Thanks for reporting this issue.

I found the problem and it should be fixed for the next version

remi-martin commented 12 months ago

Should be fixed in 2.1.0