mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Make height / width nullable for getImage
This commit is contained in:
parent
5728d1e698
commit
3c6039f757
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user