2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Display stock item status

This commit is contained in:
Oliver Walters
2021-02-10 21:30:50 +11:00
parent dbc2a7b12b
commit ce2a866384
5 changed files with 59 additions and 7 deletions

View File

@ -303,7 +303,13 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
title: Text("${item.partName}"),
subtitle: Text("${item.partDescription}"),
leading: InvenTreeAPI().getImage(item.partImage),
trailing: Text(item.serialOrQuantityDisplay()),
trailing: Text(
item.statusLabel(context),
style: TextStyle(
color: item.statusColor
)
),
//trailing: Text(item.serialOrQuantityDisplay()),
)
);
}