Commit bc5786f7 authored by Jason Simmons's avatar Jason Simmons

Merge pull request #1555 from jason-simmons/sprite_image_info

Update flutter_sprites now that ImageResource.first returns an ImageInfo
parents 517288c2 6f6584b6
...@@ -15,7 +15,7 @@ class ImageMap { ...@@ -15,7 +15,7 @@ class ImageMap {
} }
Future<ui.Image> _loadImage(String url) async { Future<ui.Image> _loadImage(String url) async {
ui.Image image = await _bundle.loadImage(url).first; ui.Image image = (await _bundle.loadImage(url).first).image;
_images[url] = image; _images[url] = image;
return image; return 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