mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 20:16:25 +00:00
Make height / width nullable for getImage
This commit is contained in:
parent
5728d1e698
commit
3c6039f757
1 changed files with 1 additions and 1 deletions
|
|
@ -866,7 +866,7 @@ class InvenTreeAPI {
|
||||||
* Load image from the InvenTree server,
|
* Load image from the InvenTree server,
|
||||||
* or from local cache (if it has been cached!)
|
* 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) {
|
if (imageUrl.isEmpty) {
|
||||||
imageUrl = staticImage;
|
imageUrl = staticImage;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue