title: Image not showing up in screen flutter
body: <p>I am trying to add a background image to <code>Container</code>. I added the image to a images folder and in the <code>pubspec</code> file.</p>
  
  <pre><code>name: my_app
  description: A new Flutter project.
  version: 1.0.0+1
  
  environment:
    sdk: "&gt;=2.1.0 &lt;3.0.0"
  
  dependencies:
    flutter:
      sdk: flutter
  
    cupertino_icons: ^0.1.2
    flutter_bloc: ^0.20.0
    equatable: ^0.3.0
    meta: "&gt;=1.1.0 &lt;2.0.0"
    material_design_icons_flutter: ^3.2.3895
  
  dev_dependencies:
    flutter_test:
      sdk: flutter
  
  flutter:
    uses-material-design: true
    assets:
      - images/banner.png
  </code></pre>
  
  <p>I used <code>DecorationImage</code>.</p>
  
  <pre><code>class _ImageBanner extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Container(
        height: 140.0,
        width: 50.0,
        decoration: BoxDecoration(
          image: DecorationImage(
            fit: BoxFit.contain,
            image: AssetImage('images/banner.png'),
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p>Everything seems fine to me, it does not give any error but the image does not show up on the screen. What can I do to fix this?</p>
  
  <p>EDIT:</p>
  
  <p>During last week I tried everything and failed only for it to work with different mobile. When I debug it with Samsumg Galaxy A5 the image does not show up. But with J7 max the image appears on screen fine. Can anyone tell me why is this hapenning.</p>