Improve 'NestedScrollView and internal scrolling' test to account for all the inner children layers (#102309)
This commit is contained in:
parent
a9eaee55ea
commit
e4edcbceb3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user