mponkin / fading_edge_scrollview

Flutter library for displaying fading edges on scroll views
BSD 3-Clause "New" or "Revised" License
43 stars 29 forks source link

How to make Fading effect appear automatically when Listview is scrollable? #19

Closed trantruongan136 closed 10 months ago

trantruongan136 commented 1 year ago

I am using a SingleChildScrollView and inside is an AnimatedList that can automatically scroll down to the last item. I found that the effect only appeared when I was using my hand and scrolling. I want to know is there a way to make the Fading effect appear automatically when the Listview is scrollable?

CoolDude53 commented 1 year ago

@trantruongan136 I made a fork that implements this. If you pass through the child scrollview's list to the FadingEdgeScrollView with the new scrollViewList paramenter, the FadingEdgeScrollView will update anytime the underlying list changes. You can use this until this functionality is properly added to the plugin.

To import in your pubspec.yaml use:

 fading_edge_scrollview:
    git:
     url: https://github.com/CoolDude53/fading_edge_scrollview.git
     ref: master
mponkin commented 10 months ago

fixed in version 4.0.0