marcglasberg / indexed_list_view

Flutter package: Similar to a ListView, but lets you programmatically jump to any item, by index.
BSD 2-Clause "Simplified" License
251 stars 21 forks source link

IndexedListView scrolls up by itself without stopping #22

Closed tudor07 closed 4 years ago

tudor07 commented 4 years ago
ParentWidget(
    child: IndexedListView.builder(
        // ...
    )
)

While scrolling up, I have a logic that as loads more data from my backend. When new data arrives ParentWidget is rebuild and this makes the IndexedListView scroll up by itself without stopping. If I disable my logic to fetch new data then ParentWidget no longer gets rebuilt and the bug does not occur, so I think the issue happens when some parent of IndexedListView is rebuilt.

marcglasberg commented 4 years ago

I wouldn't really know what's going on by your description alone. Please try giving the IndexedListView a global key, and see if it fixes the problem.

If not, I can only hope to fix this if you create for me a minimum, reproducible example, following this guidelines: https://stackoverflow.com/help/minimal-reproducible-example

dokazhi commented 4 years ago

@marcglasberg i have same issue, when u adding controller to the listview.builder, boundaries at top and bottom disappering. image image like this

marcglasberg commented 4 years ago

@dokazhi I don't think this is what this issue is about. The other guy said the list was scrolling up by itself without stopping.

What you are saying is that the boundaries at top and bottom are disappering. Plase note, this is an INFINITE listView only, which means it actually has no top and bottom boundaries.

If you need a list with boundaries, you probably should use this: https://pub.dev/packages/scrollable_positioned_list