Answers for "how to add image from assets inside as a decoration image in container"

0

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,
      ),
  ));
Posted by: Guest on August-02-2020
0

how to add image from assets inside as a decoration image in container

Container(
      height: 120.0,
      width: 120.0,
      decoration: BoxDecoration(
        image: DecorationImage(
          image: AssetImage(
              'assets/assets/alucard.jpg'),
          fit: BoxFit.fill,
        ),
        shape: BoxShape.circle,
      ),
    )
Posted by: Guest on August-02-2020

Code answers related to "how to add image from assets inside as a decoration image in container"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language