Flutter – I have written code for image widget and also given path in pubsec.yaml file then also its showing error
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/