skip to Main Content

this is the error

Image provider: AssetImage(bundle: null, name: "assets/images/login.jpg")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#e28ce(), name: "assets/images/login.jpg",
scale: 1)

here is my code

Image(
     image: AssetImage("assets/images/login.jpg"),
     ),
    pubsec.yaml
    
      assets:
        - assets/images/

2

Answers


  1. It is bcoz you haven’t close your running app

    1. close your running app first
    2. Re-open app
    Login or Signup to reply.
    1. Flutter pub get
    2. kill your app
    3. And debug or run the app again

    as you add the assert in pubspec.yaml you need to restart the application

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search