Unverified Commit e4edcbce authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Improve 'NestedScrollView and internal scrolling' test to account for all the...

Improve 'NestedScrollView and internal scrolling' test to account for all the inner children layers (#102309)
parent a9eaee55
...@@ -599,11 +599,17 @@ void main() { ...@@ -599,11 +599,17 @@ void main() {
return child; return child;
} }
if (child is ContainerLayer) { if (child is ContainerLayer) {
final PhysicalModelLayer? candidate = _dfsFindPhysicalLayer(child); Layer? innerChild = child.firstChild;
while (innerChild != null) {
if (innerChild is ContainerLayer) {
final PhysicalModelLayer? candidate = _dfsFindPhysicalLayer(innerChild);
if (candidate != null) { if (candidate != null) {
return candidate; return candidate;
} }
} }
innerChild = innerChild.nextSibling;
}
}
child = child.nextSibling; child = child.nextSibling;
} }
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment