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

Attach Scroll listener to secondary list navigated to an item at long… #496

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ankitkapoor2493
Copy link

… distance

Description

This PR updates the scroll listener to point to correct display list (primary or secondary) when list is navigated to an element which is not present is visible items (items is at a long distance). After this navigation, the secondary display list is used as an primary list but scroll Controller listener is still attached to primary list due to which no further scroll events are passed.

Related Issues

If list is navigated to an element which is at a long distance then scrollListener stops working. Issue can be replicated in the example app by add scrollController listener and navigating to item at 1000 index.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I signed the CLA.
  • All tests from running flutter test pass.
  • flutter analyze does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

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

Successfully merging this pull request may close these issues.

1 participant