New issue
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
Loading callbacks not firing when inside FutureBuilder #17
Comments
There's an example app in the repo that has a |
Let me take look at it, thanks for pointing it out. |
It's likely that you'll need to look at your code that may need restructuring. Sounds like somehow |
I'll need to take a look at that too, somehow. Changing the pattern didn't really help, so it's on to debugging |
Thanks for the fresh pair of eyes, MaikuB! I managed to track down the problem, and it was all my fault. |
I have a somewhat weird issue around loading indicators and this widget. In one part of my app, I load a rather sizable list from the server, so I display a loading indicator using a
FutureBuilder<http.Response>
, so that the app shows something while the fetch is underway, then switch to thisListView
once I have the data. This is the code in question:The loading indicator appears and disappears, the list is created, and has all the items I loaded. However, the callbacks, namely
loadMore
don't seem to fire when the end of the list is reached - a breakpoint set in that function is never hit. The same does not happen when outside theFutureBuilder
.Is it possible the
FutureBuilder
is somehow interfering with detecting the end of the list?The text was updated successfully, but these errors were encountered: