mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 10:45:29 +00:00
Add view for list of manufacturers
This commit is contained in:
@ -75,6 +75,13 @@ class InvenTreeDrawer extends StatelessWidget {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => SupplierListWidget()));
|
||||
}
|
||||
|
||||
void _showManufacturers() {
|
||||
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||
_closeDrawer();
|
||||
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => ManufacturerListWidget()));
|
||||
}
|
||||
|
||||
void _showCustomers() {
|
||||
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||
_closeDrawer();
|
||||
@ -128,9 +135,14 @@ class InvenTreeDrawer extends StatelessWidget {
|
||||
),
|
||||
new ListTile(
|
||||
title: new Text("Suppliers"),
|
||||
leading: new FaIcon(FontAwesomeIcons.industry),
|
||||
leading: new FaIcon(FontAwesomeIcons.building),
|
||||
onTap: _showSuppliers,
|
||||
),
|
||||
new ListTile(
|
||||
title: Text("Manufacturers"),
|
||||
leading: new FaIcon(FontAwesomeIcons.industry),
|
||||
onTap: _showManufacturers,
|
||||
),
|
||||
new ListTile(
|
||||
title: new Text("Customers"),
|
||||
leading: new FaIcon(FontAwesomeIcons.users),
|
||||
|
Reference in New Issue
Block a user