aagarwal1012 / Liquid-Pull-To-Refresh

🔁 A custom refresh indicator for flutter.
https://pub.dev/packages/liquid_pull_to_refresh
MIT License
1.24k stars 92 forks source link

Use with SingleChildScrollView #39

Closed jinyus closed 4 years ago

jinyus commented 4 years ago

Is your feature request related to a problem? Please describe. I have multiple ScrollViews nested in a SingleChildScrollView widget and I would like to update a nested list on pull to refresh.

I get this error when try to wrap the liquid pull to refresh around the SingleChildScrollView.

The argument type 'SingleChildScrollView' can't be assigned to the parameter type 'ScrollView'.

Describe the solution you'd like It'd be great if you allowed a SingleChildScrollView to be a child of this widget because it can scroll. This would mean making the child named parameter be of type Widget instead of ScrollView like the built in RefreshIndicator.