Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter image size not working

return Container(
      alignment: Alignment.center,// use aligment
      color: Color.fromRGBO(0, 96, 91, 1.0),
      child: Image.asset('assets/images/splash_logo.png',
        height: 150,
        width: 150,
      fit: BoxFit.cover),
    );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #image #size #working
ADD COMMENT
Topic
Name
3+1 =