Replace BoxDimensions with sky.Size
R=ianh@google.com Review URL: https://codereview.chromium.org/1150253005
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user