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

[Question]Set "BouncingScrollPhysics" to "scrollPhysics". #54

Closed
Yuki-Ut opened this issue Jun 22, 2021 · 4 comments
Closed

[Question]Set "BouncingScrollPhysics" to "scrollPhysics". #54

Yuki-Ut opened this issue Jun 22, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@Yuki-Ut
Copy link

Yuki-Ut commented Jun 22, 2021

Describe the Problem
Please tell me about the setting of "scrollPhysics".
"BouncingScrollPhysics" is set in "scrollPhysics".
However, when scrolling the line, the positions of "leftSideItemBuilder" and "rightSideItemBuilder" are misaligned.
"RightSideItemBuilder" returns to its initial position while scrolling "leftSideItemBuilder".
Is there a way to link "leftSideItemBuilder" and "rightSideItemBuilder"?

[1.Initial position]
No01

[2.Scrolling]
No02

[3.Stop scrolling]
No03

@Yuki-Ut Yuki-Ut added the help wanted Extra attention is needed label Jun 22, 2021
@MayLau-CbL
Copy link
Owner

Would you mind showing ur horizontal table widget config set up or if possible a small example project?

@Yuki-Ut
Copy link
Author

Yuki-Ut commented Jun 22, 2021

I have created a zip file for my project.
I edited and created the sample code of "pub.dev".
"scrollPhysics" is set on line 90 of "main.dart".
table_test_application.zip

@MayLau-CbL
Copy link
Owner

i understand your problem, when you pulling to scroll and holding for a few second, the left and right is not sync to the same position which is a known issue. this is hard to solve at the moment, at least still not have a good idea on this for each types of physics, let me explain the problem. This horizontal table is based on 2 listview and synchronise each other by listening each scroll notification. The notification itself will not notify every offset moved that cause the motion not that sync. And the bounce physics extend drawn will not reflect on the offset returned after holding for a few second but on its physics extends viewport, that is why you see the left side is on the top.

@MayLau-CbL
Copy link
Owner

no further comment, close this first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants