container decoration image code example
Example 1: how to add image from assets inside as a decoration image in container
new Container(
width: 100.00,
height: 100.00,
decoration: new BoxDecoration(
image: new DecorationImage(
image: ExactAssetImage('assets/example.png'),
fit: BoxFit.fitHeight,
),
));
Example 2: flutter decoration image
Container(
width: 190.0,
height: 190.0,
decoration: new BoxDecoration(
shape: BoxShape.circle,
image: new DecorationImage(
fit: BoxFit.fill,
image: new NetworkImage(
"https://i.imgur.com/BoN9kdC.png"))))