diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart index e6308f12219768e6afa5c843f0943b95fe5a9c2c..a09b4426ccc9755e6405e21eb96620bf8e009666 100644 --- a/sky/engine/core/painting/Size.dart +++ b/sky/engine/core/painting/Size.dart @@ -11,6 +11,7 @@ class Size extends OffsetBase { Size.copy(Size source) : super(source.width, source.height); const Size.fromWidth(double width) : super(width, double.INFINITY); const Size.fromHeight(double height) : super(double.INFINITY, height); + const Size.fromRadius(double radius) : super(radius * 2.0, radius * 2.0); double get width => _dx; double get height => _dy;