Explain how the scroll controller behaves under tests (#50129)

This commit is contained in:
David Shuckerow
2020-02-06 15:58:02 -08:00
committed by GitHub
parent f8b286dce0
commit 2032760509

View File

@@ -142,6 +142,10 @@ class ScrollController extends ChangeNotifier {
///
/// The duration must not be zero. To jump to a particular value without an
/// animation, use [jumpTo].
///
/// When calling [animateTo] in widget tests, `await`ing the returned
/// [Future] may cause the test to hang and timeout. Instead, use
/// [WidgetTester.pumpAndSettle].
Future<void> animateTo(
double offset, {
@required Duration duration,