From 7af81f208a2ed96d00549a9fd5fba641083e2d2c Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 20 Jul 2015 20:04:03 -0700 Subject: [PATCH] Fix typos in RenderImage This function took innerConstraints as an argument but used constraints internally. --- packages/flutter/lib/rendering/box.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/rendering/box.dart b/packages/flutter/lib/rendering/box.dart index 416312d8107..5f6142a555d 100644 --- a/packages/flutter/lib/rendering/box.dart +++ b/packages/flutter/lib/rendering/box.dart @@ -1296,7 +1296,7 @@ class RenderImage extends RenderBox { return _cachedPaint; } - Size _sizeForConstraints(BoxConstraints innerConstraints) { + Size _sizeForConstraints(BoxConstraints constraints) { // If there's no image, we can't size ourselves automatically if (_image == null) { double width = requestedSize.width == null ? 0.0 : requestedSize.width; @@ -1304,7 +1304,7 @@ class RenderImage extends RenderBox { return constraints.constrain(new Size(width, height)); } - if (!innerConstraints.isTight) { + if (!constraints.isTight) { // If neither height nor width are specified, use inherent image // dimensions. If only one dimension is specified, adjust the // other dimension to maintain the aspect ratio. In both cases,