diff --git a/engine/src/flutter/tests/raw/render_flex.dart b/engine/src/flutter/tests/raw/render_flex.dart index 24554d5869f..3cb5090813c 100644 --- a/engine/src/flutter/tests/raw/render_flex.dart +++ b/engine/src/flutter/tests/raw/render_flex.dart @@ -17,10 +17,8 @@ class RenderSolidColor extends RenderDecoratedBox { super(new BoxDecoration(backgroundColor: backgroundColor)) { } - BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) { - return new BoxDimensions.withConstraints(constraints, - width: desiredSize.width, - height: desiredSize.height); + sky.Size getIntrinsicDimensions(BoxConstraints constraints) { + return constraints.constrain(desiredSize); } void performLayout() {