Open Almighty-Alpaca opened 1 year ago
Are you calling setState
in initState
? If so, this should not be done. If not, are you able to provide a minimal reproduction of the issue?
No, I'm using this together with riverpod. I refresh a provider when clicking a button and provide refreshing: ref.watch(dataProvider).isLoading
to the DeclarativeRefreshIndicator.
I have a loading state that sometimes only exists for a very short time (under one frame as far as I can tell), causing the following exception:
I think this is caused by
_hide()
being executed before the asynchronously called_onRefresh()
can set the completer.