mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Clean up syntax as suggested by sethladd
R=sethladd@google.com, sethladd Review URL: https://codereview.chromium.org/1159763003
This commit is contained in:
parent
2470cdcafa
commit
3976cd7b28
|
@ -11,11 +11,9 @@ class RenderSolidColor extends RenderDecoratedBox {
|
|||
final double desiredWidth;
|
||||
final int backgroundColor;
|
||||
|
||||
RenderSolidColor(int backgroundColor, { double desiredHeight: double.INFINITY,
|
||||
double desiredWidth: double.INFINITY })
|
||||
: desiredHeight = desiredHeight,
|
||||
desiredWidth = desiredWidth,
|
||||
backgroundColor = backgroundColor,
|
||||
RenderSolidColor(int backgroundColor, { this.desiredHeight: double.INFINITY,
|
||||
this.desiredWidth: double.INFINITY })
|
||||
: backgroundColor = backgroundColor,
|
||||
super(new BoxDecoration(backgroundColor: backgroundColor));
|
||||
|
||||
BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {
|
||||
|
|
Loading…
Reference in a new issue