======== Exception caught by image resource service ================================================ The following assertion was thrown resolving an image codec: Unable to load asset: "dice-six-faces-one.png".
Exception: Asset not found When the exception was thrown, this was the stack: #0 PlatformAssetBundle.loadBuffer (package:flutter/src/services/asset_bundle.dart:369:7)
Run Asset image in output
To be able to use local images on your Flutter project you need this:
Create a folder
assetsin your project directory.The path for the assets folder should be
<my_project_name>/assetsAdd the images to the created folder.
Add the image reference to the configuration file
pubspec.yalmHow to call the image on your dart code: