Skip to content
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

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

Open
justrach opened this issue Aug 5, 2021 · 2 comments
Open

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

justrach opened this issue Aug 5, 2021 · 2 comments

Comments

@justrach
Copy link

justrach commented Aug 5, 2021

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

dart-lang/sdk#32443 (comment)

@fjugaldev
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants