EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
626 stars 213 forks source link

State noItemsFound and firstPageError not working properly #237

Closed BetterB0y closed 1 year ago

BetterB0y commented 1 year ago

Example: Db is returning empty list not null.

I think in _isEmpty should also be checking if !_hasError

BetterB0y commented 1 year ago

@EdsonBueno Can you check this PR?

EdsonBueno commented 1 year ago

Hey @BetterB0y, If your database is returning an empty list then you should have erased your error property.