mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +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,
|
||||
* 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…
Add table
Add a link
Reference in a new issue