flutter + add png image from asset to an icon code example
Example 1: flutter image asset
// pubspec.yaml
flutter:
assets:
- graphics/
// Inside your widget
Image(image: AssetImage('graphics/background.png'))
Example 2: how to display an image in flutter using its filepath
Image.file(File(path))