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
Error When rebuilding child in CustomRefresher #9
Comments
Hi @Flucadetena 👋🏻!Thanks! I'm doing my best! ❤️ Did you solve the problem? It looks like you were setting the state while building the widget, but maybe there is something I can improve inside the library? 🤔 |
Hi!! I don't remember very well. But something like that I think. I was rebuilding the whole widget when I added a new set of items to the Think It was something like that ;) Anyway a solved it so 🥇 ajajjajaja. Keep up with the packge, is great. And if you need help don't hesitate to ask :) |
hi @gonuit, I got the same problem here. is it possible to rebuild the widget instead of a custom refresh indicator? because I want to handle if there is no data then the user can still refresh the data. but if i handle rebuild in listview builder. the text error cannot move to the center. |
Hi @do4Mother, I think that your question is not related to the library itself. You are receiving this error because this is how the Flutter framework works. If you want to rebuild the widget from the build method, you can use for example: WidgetsBinding.instance.addPostFrameCallback((_) {
setState(() {});
}); ☝🏻 This will trigger the |
Hi, first of all, great package.
Im getting and error when I rebuild the child in
CustomRefresher
. I'm using aStaggeredGridView
(or aListView
) inside the child, but I attach a controller to it as I need to listen to the scroll to know when it reaches the end and add more items to the list. To create an infinite scroll.The problem is that when I add those items this error appears:
The app doesn't break, but it would be nice to solve it.
Hope you can shine some light into it. Thanks! ;)
The text was updated successfully, but these errors were encountered: