ensureVisible => scrollUntilVisible (#63983)

This commit is contained in:
Ming Lyu (CareF)
2020-08-17 17:11:02 -04:00
committed by GitHub
parent 24dc8d494e
commit 3313df9b13

View File

@@ -45,11 +45,11 @@ void macroPerfTestE2E(
expect(scrollable, findsOneWidget);
final Finder button =
find.byKey(ValueKey<String>(routeName), skipOffstage: false);
await tester.ensureVisible(button);
await tester.scrollUntilVisible(button, 50);
expect(button, findsOneWidget);
await tester.pumpAndSettle();
await tester.tap(button);
// Cannot be pumpAndSettle because some tests have inifite animation.
// Cannot be pumpAndSettle because some tests have infinite animation.
await tester.pump(const Duration(milliseconds: 20));
if (pageDelay != null) {