Explain how the scroll controller behaves under tests (#50129)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user