-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
| testWidgets('NestedScrollViews with custom physics', (WidgetTester tester) async { |
NestedScrollView and internal scrolling test uses ListTile.
In the new PR, I've added Material to the ListTile widget in the list_tile.dart, which updated the layer tree in this test since this test uses a ListTile
flutter/packages/flutter/test/widgets/nested_scroll_view_test.dart
Lines 568 to 570 in c910d8d
| return ListTile( | |
| title: Text('Item $index'), | |
| ); |
Following lines are not iterating through children's layers, it only accounts for whichever children's layer is first.
After updating LisTile, the children's layer is grown.
flutter/packages/flutter/test/widgets/nested_scroll_view_test.dart
Lines 601 to 606 in c910d8d
| if (child is ContainerLayer) { | |
| final PhysicalModelLayer? candidate = _dfsFindPhysicalLayer(child); | |
| if (candidate != null) { | |
| return candidate; | |
| } | |
| } |
Solution
Improve logic to iterate children's layers.
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Type
Projects
Status
Done (PR merged)