From 3c6039f75725abf0f4f31746763b0661eaf66520 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 13 Jul 2021 00:29:07 +1000 Subject: [PATCH] Make height / width nullable for getImage --- lib/api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.dart b/lib/api.dart index 21ffe65c..01b551a9 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -866,7 +866,7 @@ class InvenTreeAPI { * Load image from the InvenTree server, * or from local cache (if it has been cached!) */ - CachedNetworkImage getImage(String imageUrl, {double height = 0, double width = 0}) { + CachedNetworkImage getImage(String imageUrl, {double? height, double? width}) { if (imageUrl.isEmpty) { imageUrl = staticImage; }