The simplest way is to reference your assest folder instead of the asset itself, just make sure you use proper indentations as the pubspec.yaml is indent sensitive.
If you have multiple images that you want to include then you can leave off the file name and just use the directory name (include the final /)
flutter:
uses-material-design: true
assets:
- images/
and you can simply access each image as
Image.asset('images/jon.png',width:30,height:30)
**OR**
Restart you IDE
The simplest way is to reference your assets folder instead of the asset itself, just make sure you use proper indentations as the `pubspec.yaml` is indent sensitive.
flutter:
uses-material-design: true
assets:
- images/
and you can simply access each image as
Image.asset('images/pizza1.png', width:300, height:100)