title: AssetImage is not displaying image in flutter app
body: <p>image not displaying in flutter app.
  But I got some errors in debug console.</p>
  
  <pre><code>I/FlutterActivityDelegate(22603): onResume setting current activity to this
  I/FlutterActivityDelegate(22603): onResume setting current activity to this
  I/Timeline(22603): Timeline: Activity_idle id: android.os.BinderProxy@3eb59326 time:39937973
  I/flutter (22603): ══╡ EXCEPTION CAUGHT BY SERVICES ╞══════════════════════════════════════════════════════════════════
  I/flutter (22603): The following assertion was thrown resolving an image codec:
  I/flutter (22603): Unable to load asset: assets/images/logo.png
  I/flutter (22603): When the exception was thrown, this was the stack:
  I/flutter (22603): #0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
  I/flutter (22603): &lt;asynchronous suspension&gt;
  I/flutter (22603): #1      AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:383:44)
  I/flutter (22603): &lt;asynchronous suspension&gt;
  I/flutter (22603): #2      AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:368:14)
  I/flutter (22603): #3      ImageProvider.resolve.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter/src/painting/image_provider.dart:265:86)
  I/flutter (22603): #4      ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:82:22)
  I/flutter (22603): #5      ImageProvider.resolve.&lt;anonymous closure&gt; (package:flutter/src/painting/image_provider.dart:265:63)
  I/flutter (22603): (elided 8 frames from package dart:async)
  I/flutter (22603): Image provider: AssetImage(bundle: null, name: "assets/images/logo.png")
  I/flutter (22603): Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#19ce7(), name: "assets/images/logo.png",
  I/flutter (22603): scale: 1.0)
  I/flutter (22603): ════════════════════════════════════════════════════════════════════════════════════════════════════
  D/ViewRootImpl(22603): ViewPostImeInputStage ACTION_DOWN
  D/ViewRootImpl(22603): ViewPostImeInputStage ACTION_DOWN
  </code></pre>
  
  <p>My Pubspec.yaml file</p>
  
  <p>assets:
       - assets/images/logo.png</p>
  
  <p>login.dart code</p>
  
  <p>new Image.asset("assets/images/logo.png", width: 60.0,
                height: 24.0,
                fit: BoxFit.cover)</p>
  
  <p><strong>directory structure</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Fszbm.jpg" />
  <br/></p>
  
  <p><strong>pubspec.yaml file</strong>
  <img src="https://i.stack.imgur.com/hCKQo.jpg" /></p>