mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Display Company details
This commit is contained in:
parent
1faf0fc575
commit
a0af4e2001
2 changed files with 135 additions and 1 deletions
|
|
@ -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)));
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue