2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 02:35:27 +00:00

Display Company details

This commit is contained in:
Oliver Walters
2020-04-07 00:09:51 +10:00
parent 1faf0fc575
commit a0af4e2001
2 changed files with 135 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import 'package:InvenTree/widget/company_detail.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -85,7 +86,7 @@ class _CompanyListState extends State<CompanyListWidget> {
onTap: () {
if (company.pk > 0) {
InvenTreeCompany().get(company.pk).then((var c) {
print("Retrieved company: ${c.name}");
Navigator.push(context, MaterialPageRoute(builder: (context) => CompanyDetailWidget(c)));
});
}
},