2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 10:15:32 +00:00

Display part image in stock list

This commit is contained in:
Oliver Walters
2020-04-05 01:10:31 +11:00
parent c8f09ed62e
commit 1d1bdb1a4b
3 changed files with 32 additions and 4 deletions

View File

@ -300,6 +300,10 @@ class InvenTreeAPI {
*/
AdvancedNetworkImage getImage(String imageUrl) {
if (imageUrl.isEmpty) {
imageUrl = staticImage;
}
return new AdvancedNetworkImage(makeUrl(imageUrl),
header: defaultHeaders(),
useDiskCache: true,