How to handle Image.network when the url is wrong or the destination leads to 404.
Image.network
for example try
Image.network('https://image.tmdb.org/t/p/w92')
I have handled the network image issue related to 404 by using an errorBuilder.
Image.network('Your image url...', errorBuilder: (BuildContext context, Object exception, StackTrace stackTrace) { return Text('Your error widget...'); }, ),
errorBuilder property
1.4m articles
1.4m replys
5 comments
57.0k users