From 4cae0870320d7c9f9aece14db0f22cd13da07a66 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 28 Sep 2021 00:04:07 +1000 Subject: [PATCH] Improve rendering of missing image --- lib/api.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api.dart b/lib/api.dart index a0bf3d1b..baeee1fe 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -5,6 +5,7 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart' as http; import 'package:intl/intl.dart'; +import 'package:inventree/app_colors.dart'; import 'package:open_file/open_file.dart'; import 'package:flutter/cupertino.dart'; @@ -957,7 +958,7 @@ class InvenTreeAPI { return new CachedNetworkImage( imageUrl: url, placeholder: (context, url) => CircularProgressIndicator(), - errorWidget: (context, url, error) => Icon(FontAwesomeIcons.exclamation), + errorWidget: (context, url, error) => FaIcon(FontAwesomeIcons.timesCircle, color: COLOR_DANGER), httpHeaders: defaultHeaders(), height: height, width: width,