mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Update example to use ImageInfo
This commit is contained in:
parent
f52a1e0a33
commit
d4cc315cc4
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user