Reputation: 7976
I can show Image
from Network url in flutter.
FadeInImage.assetNetwork(
placeholder: Assets.GENRE,
image: item.image, fit: BoxFit.cover,
)
Now, I want :
After got Image url from API,
I'm able to Scale that image and show on UI as Widget.
I found ImageInfo
had attribute is scale
But I didn't get any example details how to apply this.
People who know,
Please give me an example,
Thank you,
Upvotes: 0
Views: 241
Reputation: 3479
You can use Image.Network as it's having scale and BoxFit both options. check out Image.Network here.
Example:
FadeInImage(
placeholder: Assets.GENRE,
image: Image.Network(url,scale:2.0,fit:BoxFit.cover,repeat:ImageRepeat.noRepeat),
)
Upvotes: 1