Closed chitgoks closed 2 years ago
Like said in the error:
If you’re using a Future, it probably completed after the disposal of the owning widget.
since _fetchPage
is async, it can complete after you have already closed the page with the PagedView in it.
In that case, the PagingController is disposed and doesnt accept new pages anymore.
if you are in a stateful widget, the best way of removing this error is to check the mounted
property, which tells you if your stateful widget is still active.
@chitgoks I can second what @clragon said. I'm closing the issue. Let us know if you still need additional help.
_pagingController.addPageRequestListener((pageKey) { _fetchPage(pageKey); });
and Future _fetchPage(int pageKey) async
Not sure what the cause is. looks weird though, never had this problem until i switched to flutter 2.8. could it be that?