Commit f54b8ad5 authored by Ian Hickson's avatar Ian Hickson

Use Image.toString instead of rolling our own each time

I meant to check this in as part of https://github.com/flutter/flutter/pull/1852
but forgot to commit the local change, d'oh.
parent 3eb1b412
......@@ -251,10 +251,7 @@ class RenderImage extends RenderBox {
void debugDescribeSettings(List<String> settings) {
super.debugDescribeSettings(settings);
if (image != null)
settings.add('image: [${image.width}\u00D7${image.height}]');
else
settings.add('image: null');
settings.add('image: $image');
if (width != null)
settings.add('width: $width');
if (height != null)
......
......@@ -11,7 +11,7 @@ class ImageInfo {
ImageInfo({ this.image, this.scale: 1.0 });
final ui.Image image;
final double scale;
String toString() => '[${image.width}\u00D7${image.height}] @ ${scale}x';
String toString() => '$image @ ${scale}x';
}
/// A callback for when the image is available.
......
......@@ -1593,10 +1593,7 @@ class RawImage extends LeafRenderObjectWidget {
void debugFillDescription(List<String> description) {
super.debugFillDescription(description);
if (image != null)
description.add('image: [${image.width}\u00D7${image.height}]');
else
description.add('image: null');
description.add('image: $image');
if (width != null)
description.add('width: $width');
if (height != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment