endlessSettle top-level constant
Rule
const endlessSettle
pumpAndSettle while an indeterminate progress indicator is on screen.
Implementation
const endlessSettle = Rule(
id: 'endless-settle',
severity: Severity.warning,
title: 'pumpAndSettle with an indeterminate progress indicator on screen',
why:
'An indeterminate CircularProgressIndicator, LinearProgressIndicator, '
'RefreshProgressIndicator or CupertinoActivityIndicator animates '
'forever, so pumpAndSettle keeps pumping frames until its own timeout '
'and then fails with "pumpAndSettle timed out".',
fix:
'Use `await tester.pump(duration)` while the indicator is visible, give '
'the indicator a `value` in the test, or wait for the content with a '
'bounded loop of pumps.',
);