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

Refresh Controller? #11

Closed
shoxter opened this issue Mar 25, 2019 · 3 comments
Closed

Refresh Controller? #11

shoxter opened this issue Mar 25, 2019 · 3 comments

Comments

@shoxter
Copy link

shoxter commented Mar 25, 2019

Is your feature request related to a problem? Please describe.
I'm unable to initiate a refresh externally (like upon navigating into a route, by clicking a button, etc)

Describe the solution you'd like
I would like for an optional "refresh controller" that allows for a refresh to be requested external to the LiquidPullToRefresh.

Describe alternatives you've considered
Currently using SmartRefresher to accomplish this but like the looks of this one better.

Additional context

@Taormina
Copy link
Contributor

https://github.com/aagarwal1012/Liquid-Pull-To-Refresh/blob/master/lib/liquid_pull_to_refresh.dart#L547
https://github.com/aagarwal1012/Liquid-Pull-To-Refresh/blob/master/example/lib/main.dart#L64

Check out the example here, I'm pretty sure you can use your GlobalKey<RefreshIndicatorState> to call the show() method.

@shoxter
Copy link
Author

shoxter commented Mar 27, 2019

I'll check it out and report back! Thanks!

@shoxter
Copy link
Author

shoxter commented Mar 27, 2019

It looks like this will work. Thanks!

@shoxter shoxter closed this as completed Mar 27, 2019
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