getting this error again & again but the image path is perfectly alright & dependecy is added properly in the yamal file!
Exception has occurred. FlutterError (Unable to load asset: "assets/images/profile.png". Exception: Asset not found)
assets: - assets/images
this dint soleved the proble
getting this error again & again but the image path is perfectly alright & dependecy is added properly in the yamal file!
Exception has occurred. FlutterError (Unable to load asset: "assets/images/profile.png". Exception: Asset not found)
assets: - assets/images
this dint soleved the proble
If you want to add all the assets in a folder (say "images" folder), you should add "/" at the end as below in pubspec.yaml.
  assets:
    - assets/images/
    
    
Follow the following steps:
assets/images inside project but outside lib folder.pubspec.yaml and add:(The indents must be precise)
RUN IT AGAIN.Container(
  height: 200, //As per your requirement
  width: 200,//As per your requirement
  child: Image(
    image: AssetImage(
      'assets/images/profile.png',
    ),
    fit: BoxFit.cover,
  )
)
