@@ -1189,7 +1189,8 @@ void main() {
11891189 }, variant: TargetPlatformVariant .all ());
11901190
11911191 testWidgets ('sets up parent data' , (WidgetTester tester) async {
1192- // Also tests computeChildPaintOffset & computeChildPaintExtent
1192+ // Also tests computeAbsolutePaintOffsetFor & computeChildPaintExtent
1193+ // Regression test for https://github.com/flutter/flutter/issues/128723
11931194 final Map <ChildVicinity , UniqueKey > childKeys = < ChildVicinity , UniqueKey > {};
11941195 final TwoDimensionalChildBuilderDelegate delegate = TwoDimensionalChildBuilderDelegate (
11951196 maxXIndex: 5 ,
@@ -1250,7 +1251,7 @@ void main() {
12501251 childParentData = parentDataOf (viewport.lastChild! );
12511252 expect (childParentData.vicinity, const ChildVicinity (xIndex: 5 , yIndex: 5 ));
12521253 expect (childParentData.isVisible, isFalse);
1253- expect (childParentData.paintOffset, const Offset (1000.0 , - 400 .0 ));
1254+ expect (childParentData.paintOffset, const Offset (1000.0 , - 600 .0 ));
12541255 expect (childParentData.layoutOffset, const Offset (1000.0 , 1000.0 ));
12551256
12561257 // - horizontal reverse
@@ -1271,7 +1272,7 @@ void main() {
12711272 childParentData = parentDataOf (viewport.lastChild! );
12721273 expect (childParentData.vicinity, const ChildVicinity (xIndex: 5 , yIndex: 5 ));
12731274 expect (childParentData.isVisible, isFalse);
1274- expect (childParentData.paintOffset, const Offset (- 200 .0 , 1000.0 ));
1275+ expect (childParentData.paintOffset, const Offset (- 400 .0 , 1000.0 ));
12751276 expect (childParentData.layoutOffset, const Offset (1000.0 , 1000.0 ));
12761277
12771278 // - both reverse
@@ -1293,7 +1294,7 @@ void main() {
12931294 childParentData = parentDataOf (viewport.lastChild! );
12941295 expect (childParentData.vicinity, const ChildVicinity (xIndex: 5 , yIndex: 5 ));
12951296 expect (childParentData.isVisible, isFalse);
1296- expect (childParentData.paintOffset, const Offset (- 200 .0 , - 400 .0 ));
1297+ expect (childParentData.paintOffset, const Offset (- 400 .0 , - 600 .0 ));
12971298 expect (childParentData.layoutOffset, const Offset (1000.0 , 1000.0 ));
12981299
12991300 // Change the scroll positions to test partially visible.
0 commit comments