Index: sky/tests/raw/render_flex.dart |
diff --git a/sky/tests/raw/render_flex.dart b/sky/tests/raw/render_flex.dart |
index 85be79513237e9d33e256d91ee96b574fe342223..29adc86583c46fe4ace73b496d1b0bcd8d9694ab 100644 |
--- a/sky/tests/raw/render_flex.dart |
+++ b/sky/tests/raw/render_flex.dart |
@@ -20,8 +20,20 @@ class RenderSolidColor extends RenderDecoratedBox { |
super(decoration: new BoxDecoration(backgroundColor: backgroundColor)) { |
} |
- sky.Size getIntrinsicDimensions(BoxConstraints constraints) { |
- return constraints.constrain(desiredSize); |
+ double getMinIntrinsicWidth(BoxConstraints constraints) { |
+ return constraints.constrainWidth(desiredSize.width); |
+ } |
+ |
+ double getMaxIntrinsicWidth(BoxConstraints constraints) { |
+ return constraints.constrainWidth(desiredSize.width); |
+ } |
+ |
+ double getMinIntrinsicHeight(BoxConstraints constraints) { |
+ return constraints.constrainHeight(desiredSize.height); |
+ } |
+ |
+ double getMaxIntrinsicHeight(BoxConstraints constraints) { |
+ return constraints.constrainHeight(desiredSize.height); |
} |
void performLayout() { |