Fix ListWheelScrollView gestures and paint coordinates in tests#121342
Conversation
f000764 to
e060330
Compare
There was a problem hiding this comment.
These changes are to be expected. Previously the position didn't account for transform applied to children.
200.0 = (800.0 (screen width) - 400.0 (item width in this test) ) / 2 (since the scroll view centers its children on screen)
This comment was marked as resolved.
This comment was marked as resolved.
c2935fb to
b9e3155
Compare
There was a problem hiding this comment.
For the docs, when would this be null?
There was a problem hiding this comment.
From what it seems, never. Added docs and assertions to ensure that.
Piinks
left a comment
There was a problem hiding this comment.
Wow! This is awesome, thank you for fixing such a highly requested feature!
|
(triage) @nt4f04uNd Do you still have plans to follow up on the feedback given above? |
5a1009d to
177e4d4
Compare
|
Updated. I'm sorry this took a while. |
There was a problem hiding this comment.
This test also didn't work properly because of the bug #121343
I rewrote it to actually verify the shape of the list wheel
Details
Values were: 1 decemberX = 250 octoberX = 2502
decemberX = 218.5
octoberX = 218.5
So the distance in both cases was zero
In actuality, after the fix, these values were
262.6779112246874
250.75842555233146
distance 11.919485672355961
232.8608197943362
219.35910151060554
distance = 13.501718283730668
There was a problem hiding this comment.
At first I thought, what an interesting error message, but TIL we have a couple of error messages like this. Nice!
|
auto label is removed for flutter/flutter, pr: 121342, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…ter#121342) Fix ListWheelScrollView gestures and paint coordinates in tests

Fixes #38803
Fixes #121343
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.