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
623 stars 211 forks source link

[Feature request] Ability to surface custom error message widgets #96

Closed kenthinson closed 3 years ago

kenthinson commented 3 years ago

Right now the widget shows a generic message "Something went wrong" "The Application has encountered and unknown error"

It would be nice to be able to pass in a builder that will get called on an error, the builder would then build the UI for the error message.

For example I might want to surface a message like, your session timed out please log in again. or your network connection is offline, please check your connection and try again. ect.

EdsonBueno commented 3 years ago

Hi @kenthinson , You can't change only the error message, but you can change the whole error widget instead. https://pub.dev/packages/infinite_scroll_pagination/example#customizing-indicators

Thank you

kenthinson commented 3 years ago

@EdsonBueno Ah thanks! I totally missed it. Tired brain. Thanks again :)