Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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,
      ),
  ));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #image #assets #decoration #image #container
ADD COMMENT
Topic
Name
5+8 =