2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-07-30 01:01:37 +00:00

Render list of SupplierPart

This commit is contained in:
Oliver
2021-08-02 20:05:05 +10:00
parent 5429c06349
commit 71ef6b3c5a
4 changed files with 102 additions and 10 deletions

@@ -14,6 +14,7 @@ import 'package:inventree/widget/snacks.dart';
import 'package:inventree/inventree/part.dart';
import 'package:inventree/widget/full_screen_image.dart';
import 'package:inventree/widget/category_display.dart';
import 'package:inventree/widget/part_suppliers.dart';
import 'package:inventree/widget/dialogs.dart';
import 'package:inventree/widget/fields.dart';
import 'package:inventree/api.dart';
@@ -328,10 +329,13 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
tiles.add(
ListTile(
title: Text(L10().suppliers),
leading: FaIcon(FontAwesomeIcons.industry),
leading: FaIcon(FontAwesomeIcons.industry, color: COLOR_CLICK),
trailing: Text("${part.supplierCount}"),
onTap: () {
// TODO
Navigator.push(
context,
MaterialPageRoute(builder: (context) => PartSupplierWidget(part))
);
},
)
);