I would like to use a placeholder image file that I\'ve added to my code as \"assets/placeholder.png\", but I\'m getting a File not found error. This is how I\
\"assets/placeholder.png\"
With Flutter environment, you have to use AssetBundle if you want to access to your assets (https://flutter.io/assets-and-images/).
AssetBundle
import 'package:flutter/services.dart' show rootBundle; ByteData bytes = await rootBundle.load('assets/placeholder.png');