Update example to use ImageInfo

This commit is contained in:
Kris Giesing 2016-02-01 14:04:15 -08:00
parent f52a1e0a33
commit d4cc315cc4

View File

@ -82,8 +82,8 @@ void main() {
// Resizeable image // Resizeable image
image = new RenderImageGrow(null, new Size(100.0, null)); image = new RenderImageGrow(null, new Size(100.0, null));
imageCache.load("http://flutter.io/favicon.ico").first.then((ui.Image dartLogo) { imageCache.load("http://flutter.io/favicon.ico").first.then((ImageInfo dartLogo) {
image.image = dartLogo; image.image = dartLogo.image;
}); });
row.add(new RenderPadding(padding: const EdgeDims.all(10.0), child: image)); row.add(new RenderPadding(padding: const EdgeDims.all(10.0), child: image));