mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-04 07:15:46 +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(
 | 
					    tiles.add(
 | 
				
			||||||
      ListTile(
 | 
					      ListTile(
 | 
				
			||||||
        title: Text(I18N.of(context).build),
 | 
					        title: Text(I18N.of(context).build),
 | 
				
			||||||
        subtitle: Text("${info.buildNumber}"),
 | 
					        subtitle: Text("${info.buildNumber}"),
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return Scaffold(
 | 
					    return Scaffold(
 | 
				
			||||||
      appBar: AppBar(
 | 
					      appBar: AppBar(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -199,10 +199,13 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
 | 
				
			|||||||
          icon: FaIcon(FontAwesomeIcons.shapes),
 | 
					          icon: FaIcon(FontAwesomeIcons.shapes),
 | 
				
			||||||
          label: I18N.of(context).parts,
 | 
					          label: I18N.of(context).parts,
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
 | 
					        // TODO - Add the "actions" item back in
 | 
				
			||||||
 | 
					        /*
 | 
				
			||||||
        BottomNavigationBarItem(
 | 
					        BottomNavigationBarItem(
 | 
				
			||||||
          icon: FaIcon(FontAwesomeIcons.wrench),
 | 
					          icon: FaIcon(FontAwesomeIcons.wrench),
 | 
				
			||||||
          label: I18N.of(context).actions
 | 
					          label: I18N.of(context).actions
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
 | 
					         */
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -214,7 +217,8 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
 | 
				
			|||||||
        title: Text(
 | 
					        title: Text(
 | 
				
			||||||
          I18N.of(context).subcategories,
 | 
					          I18N.of(context).subcategories,
 | 
				
			||||||
          style: TextStyle(fontWeight: FontWeight.bold)
 | 
					          style: TextStyle(fontWeight: FontWeight.bold)
 | 
				
			||||||
        )
 | 
					        ),
 | 
				
			||||||
 | 
					        trailing: _subcategories.isNotEmpty ? Text("${_subcategories.length}") : null,
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -239,7 +243,8 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
 | 
				
			|||||||
        title: Text(
 | 
					        title: Text(
 | 
				
			||||||
          I18N.of(context).parts,
 | 
					          I18N.of(context).parts,
 | 
				
			||||||
          style: TextStyle(fontWeight: FontWeight.bold)
 | 
					          style: TextStyle(fontWeight: FontWeight.bold)
 | 
				
			||||||
        )
 | 
					        ),
 | 
				
			||||||
 | 
					        trailing: _parts.isNotEmpty ? Text("${_parts.length}") : null,
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -239,8 +239,9 @@ List<Widget> detailTiles() {
 | 
				
			|||||||
      ListTile(
 | 
					      ListTile(
 | 
				
			||||||
        title: Text(
 | 
					        title: Text(
 | 
				
			||||||
          I18N.of(context).sublocations,
 | 
					          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(
 | 
					        title: Text(
 | 
				
			||||||
            I18N.of(context).stockItems,
 | 
					            I18N.of(context).stockItems,
 | 
				
			||||||
            style: TextStyle(fontWeight: FontWeight.bold)
 | 
					            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
 | 
					name: InvenTree
 | 
				
			||||||
description: InvenTree stock management
 | 
					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.
 | 
					# 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
 | 
					# 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.
 | 
					# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
 | 
				
			||||||
# Read more about iOS versioning at
 | 
					# Read more about iOS versioning at
 | 
				
			||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
					# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
				
			||||||
version: 0.1.0+2
 | 
					version: 0.0.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
environment:
 | 
					environment:
 | 
				
			||||||
  sdk: ">=2.1.0 <3.0.0"
 | 
					  sdk: ">=2.1.0 <3.0.0"
 | 
				
			||||||
@@ -58,10 +54,6 @@ flutter_icons:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# The following section is specific to Flutter.
 | 
					# The following section is specific to Flutter.
 | 
				
			||||||
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
 | 
					  uses-material-design: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  generate: true
 | 
					  generate: true
 | 
				
			||||||
@@ -70,11 +62,6 @@ flutter:
 | 
				
			|||||||
    - assets/image/icon.png
 | 
					    - assets/image/icon.png
 | 
				
			||||||
    - assets/release_notes.md
 | 
					    - 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
 | 
					  # An image asset can refer to one or more resolution-specific "variants", see
 | 
				
			||||||
  # https://flutter.dev/assets-and-images/#resolution-aware.
 | 
					  # https://flutter.dev/assets-and-images/#resolution-aware.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user