sort_constructors_first (#22575)

This commit is contained in:
Alexandre Ardhuin
2018-10-04 07:28:07 +02:00
committed by GitHub
parent a68b03e9ce
commit 2ea1d81cdc
74 changed files with 449 additions and 444 deletions

View File

@@ -6,12 +6,12 @@ import 'package:flutter/rendering.dart';
import 'package:flutter/gestures.dart';
class RenderSolidColorBox extends RenderDecoratedBox {
final Size desiredSize;
final Color backgroundColor;
RenderSolidColorBox(this.backgroundColor, { this.desiredSize = Size.infinite })
: super(decoration: BoxDecoration(color: backgroundColor));
final Size desiredSize;
final Color backgroundColor;
@override
double computeMinIntrinsicWidth(double height) {
return desiredSize.width == double.infinity ? 0.0 : desiredSize.width;