Liquid-Pull-To-Refresh icon indicating copy to clipboard operation
Liquid-Pull-To-Refresh copied to clipboard

onRefreshed() requires a Future<void> object to be returned

Open justrach opened this issue 4 years ago • 2 comments

However if you are using any state management system, you do not need this and it would not refresh at all. A solution that I found that might interest some would be by following links

https://github.com/dart-lang/sdk/issues/32443#issuecomment-697310800

justrach avatar Aug 05 '21 17:08 justrach

hey @justrach why will not work when using let's say flutter bloc? this component trigger the onRefreshed() method so then we can call any bloc method for reloading data or something like that? i think if we wrap the LiquidPullToRefresh around the BlocProvider maybe it can work or am i wrong?

fjugaldev avatar Aug 08 '23 22:08 fjugaldev

What you mean is that the onRefreshed() method must be of type Future? instead of Future

fjugaldev avatar Aug 08 '23 22:08 fjugaldev