Huy Tower
Huy Tower

Reputation: 7976

Show Scale image as widget in flutter

I can show Image from Network url in flutter.

FadeInImage.assetNetwork(
        placeholder: Assets.GENRE,
        image: item.image, fit: BoxFit.cover,
      )

Now, I want :

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

Answers (1)

Jay Dangar
Jay Dangar

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

Related Questions