2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 10:15:32 +00:00

Add counters

This commit is contained in:
Oliver Walters
2021-02-13 00:27:11 +11:00
parent bd19047b9b
commit 443c545ed2
4 changed files with 16 additions and 19 deletions

View File

@ -239,8 +239,9 @@ List<Widget> detailTiles() {
ListTile(
title: Text(
I18N.of(context).sublocations,
style: TextStyle(fontWeight: FontWeight.bold)
style: TextStyle(fontWeight: FontWeight.bold),
),
trailing: sublocations.length > 0 ? Text("${sublocations.length}") : null,
),
];
@ -266,7 +267,8 @@ List<Widget> detailTiles() {
title: Text(
I18N.of(context).stockItems,
style: TextStyle(fontWeight: FontWeight.bold)
)
),
trailing: _items.length > 0 ? Text("${_items.length}") : null,
)
];