Further improvements for stock view

This commit is contained in:
Oliver Walters 2020-04-06 22:13:57 +10:00
parent 5e3793b3ba
commit 948c9c1d23
3 changed files with 155 additions and 4 deletions

View file

@ -61,9 +61,12 @@ class _PartDisplayState extends State<PartDisplayWidget> {
subtitle: Text("${part.categoryName}"),
leading: FaIcon(FontAwesomeIcons.stream),
onTap: () {
InvenTreePartCategory().get(part.categoryId).then((var cat) {
Navigator.push(context, MaterialPageRoute(builder: (context) => CategoryDisplayWidget(cat)));
});
if (part.categoryId > 0) {
InvenTreePartCategory().get(part.categoryId).then((var cat) {
Navigator.push(context, MaterialPageRoute(
builder: (context) => CategoryDisplayWidget(cat)));
});
}
},
)
);