| Index: sky/examples/lib/solid_color_box.dart
|
| diff --git a/sky/examples/lib/solid_color_box.dart b/sky/examples/lib/solid_color_box.dart
|
| index 4608f4b6b334d766e8f026c92fa315e946ca7dc0..219366fd96679052df0209a023b14d8a338f51f0 100644
|
| --- a/sky/examples/lib/solid_color_box.dart
|
| +++ b/sky/examples/lib/solid_color_box.dart
|
| @@ -13,8 +13,20 @@ class RenderSolidColorBox extends RenderDecoratedBox {
|
| : backgroundColor = backgroundColor,
|
| super(decoration: new BoxDecoration(backgroundColor: backgroundColor));
|
|
|
| - 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() {
|
|
|