Closed ThinkDigitalSoftware closed 4 years ago
Hi @ThinkDigitalSoftware ! Thanks for suggesting this.
There are several open issues regarding NestedScrollView
and its use with RefreshIndicator
for example :-
https://github.com/flutter/flutter/issues/34727#issue-458143763
https://github.com/flutter/flutter/issues/17518#issuecomment-600738109
You can also verify them yourself by wrapping the built in RefreshIndicator
around a NestedScrollView
. It does not work.
Our work around for this is relatively simple. Wrap your inner ScrollView
with the LiquidPullToRefresh
to make it work.
Here is how I made it work.
ScrollView
, in this case CustomScrollView
with LiquidPullToRefresh
This works because we already have the package built for cases of OverScrollNotification
for direct child widgets. When you apply it over the NestedScrollView
it somehow does not seem to handle the OverScrollNotification
in the way we expect. Since it is a prevailing issue there is not much to say about it.
You can refer to another example here - https://github.com/flutter/flutter/issues/26409#issue-398156841
I hope this helps.
Closing this issue since no further information is given.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I'm trying to add a pull to refresh with a
NestedScrollView
, but this widget doesn't extend ScrollView, so it doesn't work Describe the solution you'd like A clear and concise description of what you want to happen. A widget that works with NestedScrollViews Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.