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:
@ -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)));
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user