jajpa / paging_library

A Flutter package for paginating a list view
MIT License
37 stars 7 forks source link

pullToRefresh not working with paging widget #8

Open am-singh opened 5 years ago

am-singh commented 5 years ago

Is there a convenient way to wrap this inside a SmartRefresher (pull_to_refresh) to enable a pull-to-refresh feature?

I tried wrapping the pagination widget inside a SmartRefresh widget, but it is not recognizing it or working.

hacker1024 commented 5 years ago

We need to make the state object public, and then add public function to reset the internal item list that we can the call with a GlobalKey. I'm going to see if I can add this functionality in a fork.

hacker1024 commented 5 years ago

@am-singh Do you want to try this? https://github.com/hacker1024/paging_library/tree/patch-3