mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
Add counters
This commit is contained in:
@ -89,12 +89,15 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
||||
)
|
||||
);
|
||||
|
||||
// TODO: Do we really need build number?
|
||||
/*
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(I18N.of(context).build),
|
||||
subtitle: Text("${info.buildNumber}"),
|
||||
)
|
||||
);
|
||||
*/
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
|
@ -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,
|
||||
),
|
||||
];
|
||||
|
||||
|
@ -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,
|
||||
)
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user