mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Replace BoxDimensions with sky.Size
R=ianh@google.com Review URL: https://codereview.chromium.org/1150253005
This commit is contained in:
parent
6ddb6c5b09
commit
95333572dd
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user