Create WidgetTester.ensureVisible(Finder)#22620
Create WidgetTester.ensureVisible(Finder)#22620tvolkert merged 3 commits intoflutter:masterfrom devkabiir:fix_8185
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it |
|
CLAs look good, thanks! |
tvolkert
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
There was a problem hiding this comment.
The distinction between the widget being made visible and the scrollable is a little confusing in the wording here. How about:
/// Given a widget `W` specified by [finder] and a [Scrollable] widget `S` in
/// its ancestry tree, this scrolls `S` so as to make `W` visible.
///
/// Shorthand for `Scrollable.ensureVisible(tester.element(finder))`There was a problem hiding this comment.
Thanks, Yours is simpler. I'll update it.
This is just a shorthand for Scrollable.ensureVisible(tester.element(finder))
Signed-off-by: devkabiir <[email protected]>
| /// its ancestry tree, this scrolls `S` so as to make `W` visible. | ||
| /// | ||
| /// Shorthand for `Scrollable.ensureVisible(tester.element(finder))` | ||
| Future<Null> ensureVisible(Finder finder) => Scrollable.ensureVisible(element(finder)); |
There was a problem hiding this comment.
Analysis is failing because Future<void> is the modern replacement for Future<Null>
There was a problem hiding this comment.
Thanks, I was just trying to figure it out.
Future<void> is the modern replacment for Future<Null> Signed-off-by: devkabiir <[email protected]>
…urvives at least two frames (flutter#22620)" (flutter/engine#23044)
…urvives at least two frames (flutter#22620)" (flutter/engine#23044)
…urvives at least two frames (flutter#22620)" (flutter/engine#23044)
…urvives at least two frames (flutter#22620)" (flutter/engine#23044)
This is just a shorthand for
Scrollable.ensureVisible(tester.element(finder))closes #8185