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

Placeholder doesn't work during scrolling through dragging #47

Open
chaudharydeepanshu opened this issue Oct 14, 2022 · 1 comment
Open

Comments

@chaudharydeepanshu
Copy link
Contributor

The provided placeholder doesn't work during scrolling through dragging.

screen-20221014-202154.2.mp4

I found that the _dragging variable in ReorderableItemViewState from reorderable_item.dart only becomes true for elements that were visible at the start of drag but after continuous scrolling, through drag, it never becomes true for the newly generated elements by the builder.

I was unable to resolve that as I'm very unfamiliar with the code.

Thank you.

@huhuang03
Copy link
Owner

huhuang03 commented Oct 16, 2022

After some debug, I found it's a can't resovle issue in current implemention.

The reason the placeholder is gone is: the placeholdre is implements like this:

Transform(
    child: buildBy(dragging child)
    offset: calcTheOffset()
)

The offset is right, but after scroll down, the parent grdiview is ignore showing the dragging widget child. I can't find a way to resolve this. I'm sorry for this.

Maybe you can try this project reorderables or flutter-reorderable-grid-view. They are seems very powerful.

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

2 participants