Commit 6f6584b6 authored by Jason Simmons's avatar Jason Simmons

Update flutter_sprites now that ImageResource.first returns an ImageInfo

parent 687ff57e
...@@ -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