Merge pull request #273 from lsuhov/integration_test__package_support

Change scroll code to make it working also for AnimatedList
This commit is contained in:
Jon Samwell 2022-10-28 15:54:59 +11:00 committed by GitHub
commit 7c8be5f60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class WidgetTesterAppDriverAdapter
find.byType(Scrollable),
matchRoot: true,
);
final state = nativeDriver.state(scrollableFinder) as ScrollableState;
final state = nativeDriver.firstState(scrollableFinder) as ScrollableState;
final position = state.position;
position.jumpTo(dy ?? dx ?? 0);