Flutter - How to draw an Image on Canvas using DrawImage method
问题 I'm trying to draw an image file into the canvas to compose my widget in Flutter. I did follow canvas documentation but a did not success. O Image docs, thay say that: To obtain an Image object, use instantiateImageCodec. I did try use instantiateImageCodec method, but i just get a Codec instance, not a Image How is the right way to get an instance of ui.Image to draw on canvas using canvas.drawImage Here is a snnipet of my code: Future<ui.Codec> _loadImage(AssetBundleImageKey key) async {