Commit 52c7a123 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Fixed "AppBar actions are vertically centered" test (#8333)

parent 7a7f9b68
...@@ -223,10 +223,7 @@ void main() { ...@@ -223,10 +223,7 @@ void main() {
); );
// The vertical center of the widget with key, in global coordinates. // The vertical center of the widget with key, in global coordinates.
double yCenter(Key key) { double yCenter(Key key) => tester.getCenter(find.byKey(key)).y;
RenderBox box = tester.renderObject(find.byKey(appBarKey));
return box.localToGlobal(new Point(0.0, box.size.height / 2.0)).y;
}
expect(yCenter(appBarKey), equals(yCenter(leadingKey))); expect(yCenter(appBarKey), equals(yCenter(leadingKey)));
expect(yCenter(appBarKey), equals(yCenter(titleKey))); expect(yCenter(appBarKey), equals(yCenter(titleKey)));
......
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