mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Stuff:
- Specify image size in list view - Move "edit" button to app bar - Display part keywords - Allow editing of part keywords
This commit is contained in:
@ -380,7 +380,7 @@ class InvenTreeAPI {
|
||||
* Load image from the InvenTree server,
|
||||
* or from local cache (if it has been cached!)
|
||||
*/
|
||||
CachedNetworkImage getImage(String imageUrl) {
|
||||
CachedNetworkImage getImage(String imageUrl, {double height, double width}) {
|
||||
if (imageUrl.isEmpty) {
|
||||
imageUrl = staticImage;
|
||||
}
|
||||
@ -392,6 +392,8 @@ class InvenTreeAPI {
|
||||
placeholder: (context, url) => CircularProgressIndicator(),
|
||||
errorWidget: (context, url, error) => Icon(FontAwesomeIcons.exclamation),
|
||||
httpHeaders: defaultHeaders(),
|
||||
height: height,
|
||||
width: width,
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user