Unverified Commit 20327605 authored by David Shuckerow's avatar David Shuckerow Committed by GitHub

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

parent f8b286dc
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment