Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexedListView scrolls up by itself without stopping #22

Closed
tudor07 opened this issue Mar 26, 2020 · 3 comments
Closed

IndexedListView scrolls up by itself without stopping #22

tudor07 opened this issue Mar 26, 2020 · 3 comments

Comments

@tudor07
Copy link

tudor07 commented Mar 26, 2020

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
Copy link
Owner

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
Copy link

dokazhi commented Apr 20, 2020

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

@marcglasberg
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants