2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +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

@ -199,10 +199,13 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
icon: FaIcon(FontAwesomeIcons.shapes),
label: I18N.of(context).parts,
),
// TODO - Add the "actions" item back in
/*
BottomNavigationBarItem(
icon: FaIcon(FontAwesomeIcons.wrench),
label: I18N.of(context).actions
),
*/
]
);
}
@ -214,7 +217,8 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
title: Text(
I18N.of(context).subcategories,
style: TextStyle(fontWeight: FontWeight.bold)
)
),
trailing: _subcategories.isNotEmpty ? Text("${_subcategories.length}") : null,
),
];
@ -239,7 +243,8 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
title: Text(
I18N.of(context).parts,
style: TextStyle(fontWeight: FontWeight.bold)
)
),
trailing: _parts.isNotEmpty ? Text("${_parts.length}") : null,
),
];

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,
)
];