I have a Flutter project that works well on both the iOS and Android platform.
In the Flutter project, there is an image located in android/app/src/main/res/mipmap-xxhdpi/temp.jpg,
and I want to load that image and use it in the Flutter widget.
I have tried to find answer in the document Adding assets and images and Flutter for Android developers but no luck.
How to do that? Thanks.
Image.asset("images/my_image.png");
. Have you tried this? – jabamataroImage.asset("android/app/src/main/res/mipmap-xxhdpi/temp.jpg");
? Note that you need to define it first in pubspec.yaml – jabamataro