Explain how the scroll controller behaves under tests#50129
Explain how the scroll controller behaves under tests#50129fluttergithubbot merged 3 commits intoflutter:masterfrom
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
goderbauer
left a comment
There was a problem hiding this comment.
LGTM after style comment is addressed.
| /// The duration must not be zero. To jump to a particular value without an | ||
| /// animation, use [jumpTo]. | ||
| /// | ||
| /// Note that when calling [animateTo] in widget tests, `await`ing the |
There was a problem hiding this comment.
nit: as per style guide don't use "note that".
|
This pull request is not suitable for automatic merging in its current state.
|
|
This pull request is not suitable for automatic merging in its current state.
|
|
It looks like this is experiencing a flake that has been patched. Can you update your branch with changes from master? |
Done. Tests passing now. |
Description
Explain that awaiting ScrollController.animateTo can cause tests to hang.
Tests
This is a documentation update.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.