2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 10:15:32 +00:00
- 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:
Oliver Walters
2021-01-21 20:53:49 +11:00
parent 65a01ff98c
commit 3096a6d25f
5 changed files with 88 additions and 43 deletions

View File

@ -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,
);
}
}