diff --git a/lib/settings/about.dart b/lib/settings/about.dart index 62f0cd5f..d13ba337 100644 --- a/lib/settings/about.dart +++ b/lib/settings/about.dart @@ -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( diff --git a/lib/widget/category_display.dart b/lib/widget/category_display.dart index ffa22289..10c9d37c 100644 --- a/lib/widget/category_display.dart +++ b/lib/widget/category_display.dart @@ -199,10 +199,13 @@ class _CategoryDisplayState extends RefreshableState { 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 { 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 { title: Text( I18N.of(context).parts, style: TextStyle(fontWeight: FontWeight.bold) - ) + ), + trailing: _parts.isNotEmpty ? Text("${_parts.length}") : null, ), ]; diff --git a/lib/widget/location_display.dart b/lib/widget/location_display.dart index 8f262a0b..7b8ebe6a 100644 --- a/lib/widget/location_display.dart +++ b/lib/widget/location_display.dart @@ -239,8 +239,9 @@ List 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 detailTiles() { title: Text( I18N.of(context).stockItems, style: TextStyle(fontWeight: FontWeight.bold) - ) + ), + trailing: _items.length > 0 ? Text("${_items.length}") : null, ) ]; diff --git a/pubspec.yaml b/pubspec.yaml index 27c6c173..35fca75a 100644 --- a/pubspec.yaml +++ b/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.