title: image asset not loading in flutter firebase project
body: <p>I am following one tutorial on flutter and I am trying to load an image, unfortunately, the image was unable to load. I always have an error in console that the image was unable to load.my code is as followed:</p>
  
  <pre><code>import 'dart:ffi';
  
  import 'package:flutter/cupertino.dart';
  import 'package:flutter/material.dart';
  import 'package:google_sign_in/google_sign_in.dart';
  
  
  final GoogleSignIn googleSignIn = new GoogleSignIn();
  
  class Home extends StatefulWidget {
    @override
    _HomeState createState() =&gt; _HomeState();
  }
  
  class _HomeState extends State&lt;Home&gt; {
    bool isAuth = false;
    @override
    Void initState() {
      super.initState();
      //detect when user sign in
      googleSignIn.onCurrentUserChanged.listen((account) {
       handleSignIn(account);
      }, onError:(err){
        print('error signing in:$err');
      }
  
      );
      //re-authenticated when user sign in the app
      googleSignIn.signInSilently(suppressErrors: false).then((account){
           handleSignIn(account);
  
      }).catchError((err){
         print('error signing in:$err');
      });
    }
  
    handleSignIn(GoogleSignInAccount account){
          if (account != null) {
          print(account);
          setState(() {
            isAuth = true;
          });
        } else {
          setState(() {
            isAuth = false;
          });
        }
    }
  
    login() {
      googleSignIn.signIn();
    }
  
    logOut(){
  
      googleSignIn.signOut();
    }
  
    Widget buildAuthScreen() {
      return RaisedButton(
        child:Text("LogOut"),
      onPressed: (){
         logOut();
      },
      );
    }
  
    Scaffold unAuthBuildScreen() {
      return Scaffold(
        body: Container(
          decoration: BoxDecoration(
            gradient: LinearGradient(
              begin: Alignment.topRight,
              end: Alignment.bottomLeft,
              colors: [
                Theme.of(context).primaryColor,
                Theme.of(context).accentColor,
              ],
            ),
          ),
          alignment: Alignment.center,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: &lt;Widget&gt;[
              Text(
                "FlutterShare",
                style: TextStyle(
                  //fontFamily: "Signatra",
                  fontSize: 50.0,
                  color: Colors.white,
                ),
              ),
              GestureDetector(
                onTap: () =&gt; print("tapped"),
                child: Container(
                  width: 260.0,
                  height: 60.0,
                  decoration: BoxDecoration(
                    image: DecorationImage(
                    // image:AssetImage(bund"assets/images/google_sigin_button.png"),
                    image: AssetImage("assets/images/google_sigin_button.png"),
                       fit: BoxFit.fill),
                  ),
                ),
              ),
            ],
          ),
        ),
      );
    }
  
    @override
    Widget build(BuildContext context) {
      return isAuth ? buildAuthScreen() : unAuthBuildScreen();
    }
  }
  </code></pre>
  
  <p>pubspec.yaml is as follows.Please help me</p>
  
  <pre><code>name: fluttershare
  description: A new Flutter project.
  
  # The following defines the version and build number for your application.
  # A version number is three numbers separated by dots, like 1.2.43
  # followed by an optional build number separated by a +.
  # Both the version and the builder number may be overridden in flutter
  # build by specifying --build-name and --build-number, respectively.
  # In Android, build-name is used as versionName while build-number used as versionCode.
  # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
  # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
  # Read more about iOS versioning at
  # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
  version: 1.0.0+1
  
  environment:
    sdk: "&gt;=2.1.0 &lt;3.0.0"
  
  dependencies:
    flutter:
      sdk: flutter
    firebase_auth: ^0.15.5+3
    firebase_database: ^3.1.3
    cloud_firestore: ^0.13.4+1
    image_picker: ^0.6.4
    firebase_storage: ^3.1.5
    google_sign_in: ^4.4.1
    geolocator: ^5.3.1
    uuid: ^2.0.4
    timeago: ^2.0.26
    path_provider: ^1.6.4
    flutter_svg:
    cached_network_image: ^2.0.0
    firebase_messaging: ^6.0.13
    image: ^2.1.4
    animator: ^1.0.0+5
  
  
    # The following adds the Cupertino Icons font to your application.
    # Use with the CupertinoIcons class for iOS style icons.
    cupertino_icons: ^0.1.2
  
  dev_dependencies:
    flutter_test:
      sdk: flutter
  
  
  # For information on the generic Dart part of this file, see the
  # following page: https://dart.dev/tools/pub/pubspec
  
  # The following section is specific to Flutter.
  flutter:
    uses-material-design: true
    assets:
      - assets/images/google_signin_button.png
      - assets/images/upload.svg
      - assets/images/search.svg
      - assets/images/activity_feed.svg
      - assets/images/no_content.svg
    # An image asset can refer to one or more resolution-specific "variants", see
    # https://flutter.dev/assets-and-images/#resolution-aware.
  
    # For details regarding adding assets from package dependencies, see
    # https://flutter.dev/assets-and-images/#from-packages
  
    # To add custom fonts to your application, add a fonts section here,
    # in this "flutter" section. Each entry in this list should have a
    # "family" key with the font family name, and a "fonts" key with a
    # list giving the asset and other descriptors for the font. For
    # example:
    # fonts:
    #   - family: Schyler
    #     fonts:
    #       - asset: fonts/Schyler-Regular.ttf
    #       - asset: fonts/Schyler-Italic.ttf
    #         style: italic
    #   - family: Trajan Pro
    #     fonts:
    #       - asset: fonts/TrajanPro.ttf
    #       - asset: fonts/TrajanPro_Bold.ttf
    #         weight: 700
    #
    # For details regarding fonts from package dependencies,
    # see https://flutter.dev/custom-fonts/#from-packages
  </code></pre>
  
  <h2>please help I have been on this for the past 3 days</h2>