sort_constructors_first (#22575)
This commit is contained in:
committed by
GitHub
parent
a68b03e9ce
commit
2ea1d81cdc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user