Reputation: 1043
is there some way for using NetworkImage as background ?
I need create some box with network image and I need add some widgets over this image.
Thanks for help.
Upvotes: 4
Views: 14055
Reputation: 8392
Use the decoration
attribute of Container
to put the network image. You must also update the container size.
Container(
decoration:
BoxDecoration(
image: DecorationImage(
image: NetworkImage("http://via.placeholder.com/350x150"))))
Upvotes: 15