SingleChildScrollView does not clip semantics child#114194
SingleChildScrollView does not clip semantics child#114194auto-submit[bot] merged 4 commits intoflutter:masterfrom
Conversation
|
Looks like some tests are failing on this? |
There was a problem hiding this comment.
Isn't this making the semantics clip larger than necessary? AFAK, "remainingOffset" is the distance from the top of the viewport to the end of the scrollable content, so the semantics clip here would be one viewport height to tall, no?
Not that it matters in practice, but may cause confusion in the future...
There was a problem hiding this comment.
Could we actually add a test for this? The height of the semanticsClip rect should be exactly the height of the scrollable content, right?
There was a problem hiding this comment.
Ah, wait: _maxScrollExtent is already accounting for the viewport width. Still, I think adding a test like I described above would be great.
There was a problem hiding this comment.
Ah, wait: _maxScrollExtent is already accounting for the viewport width. Still, I think adding a test like I described above would be great.
b36ff85 to
b502b37
Compare
There was a problem hiding this comment.
nit: here and below are some extra whitespaces after the "="
There was a problem hiding this comment.
Although we don't use fmt in flutter, I think should have lint or autoformat on indent at least.
|
auto label is removed for flutter/flutter, pr: 114194, due to - The status or check suite Linux web_tests_7_last has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
auto label is removed for flutter/flutter, pr: 114194, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
besides the expected scuba the other test failure doesn't seem related |
a49dd88 to
b1dd937
Compare
This reverts commit fa174b2.

Fixes #113615
I can't find a reason to clip it since it was laid out just to be thrown away during the semantics gathering stage.
The original issue is because some children are too far away from cache extent and gets throw away. the voiceover then think there is no child.
The alternative is to expose cache extent in single child scroll view, but it doesn't make sense as an API because everything will be laid out regardlessly.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.