mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Add counters
This commit is contained in:
parent
bd19047b9b
commit
443c545ed2
@ -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,
|
||||
)
|
||||
];
|
||||
|
||||
|
17
pubspec.yaml
17
pubspec.yaml
@ -1,17 +1,13 @@
|
||||
name: InvenTree
|
||||
description: InvenTree stock management
|
||||
|
||||
# The following defines the version and build number for your application.
|
||||
# A version number is three numbers separated by dots, like 1.2.43
|
||||
# followed by an optional build number separated by a +.
|
||||
# Both the version and the builder number may be overridden in flutter
|
||||
# build by specifying --build-name and --build-number, respectively.
|
||||
# In Android, build-name is used as versionName while build-number used as versionCode.
|
||||
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
|
||||
|
||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 0.1.0+2
|
||||
version: 0.0.1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
@ -58,10 +54,6 @@ flutter_icons:
|
||||
|
||||
# The following section is specific to Flutter.
|
||||
flutter:
|
||||
|
||||
# The following line ensures that the Material Icons font is
|
||||
# included with your application, so that you can use the icons in
|
||||
# the material Icons class.
|
||||
uses-material-design: true
|
||||
|
||||
generate: true
|
||||
@ -70,11 +62,6 @@ flutter:
|
||||
- assets/image/icon.png
|
||||
- assets/release_notes.md
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user