Commit d4cc315c authored by Kris Giesing's avatar Kris Giesing

Update example to use ImageInfo

parent f52a1e0a
...@@ -82,8 +82,8 @@ void main() { ...@@ -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));
......
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