The code below still shows as an exception. This is a very common situation.
Image.network("${image}x",
fit: BoxFit.cover,
width: 150,
height: 150, loadingBuilder: (BuildContext context,
Widget child, ImageChunkEvent loadingProgress) {
if (loadingProgress == null) {
return child;
}
return Platform.isIOS
? CupertinoActivityIndicator(radius: 20)
: CircularProgressIndicator();
});
} catch(_) {
return Container();
}
[✓] Flutter (Channel dev, v1.7.3, on Mac OS X 10.14.5 18F132, locale en-RO)
• Flutter version 1.7.3 at /Users/devx/flutter
• Framework revision 362b999 (6 days ago), 2019-06-07 12:43:27 -0700
• Engine revision 0602dbb
• Dart version 2.3.2 (build 2.3.2-dev.0.1 6e0d978505)
The code below still shows as an exception. This is a very common situation.
[✓] Flutter (Channel dev, v1.7.3, on Mac OS X 10.14.5 18F132, locale en-RO)
• Flutter version 1.7.3 at /Users/devx/flutter
• Framework revision 362b999 (6 days ago), 2019-06-07 12:43:27 -0700
• Engine revision 0602dbb
• Dart version 2.3.2 (build 2.3.2-dev.0.1 6e0d978505)