mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
More options for main screen
This commit is contained in:
parent
a7d11faec8
commit
e8a4a387ea
@ -200,6 +200,18 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
Navigator.push(context, MaterialPageRoute(builder: (context) => SupplierListWidget()));
|
Navigator.push(context, MaterialPageRoute(builder: (context) => SupplierListWidget()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _manufacturers() {
|
||||||
|
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||||
|
|
||||||
|
Navigator.push(context, MaterialPageRoute(builder: (context) => ManufacturerListWidget()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void _customers() {
|
||||||
|
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||||
|
|
||||||
|
Navigator.push(context, MaterialPageRoute(builder: (context) => CustomerListWidget()));
|
||||||
|
}
|
||||||
|
|
||||||
void _unsupported() {
|
void _unsupported() {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@ -293,14 +305,40 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
Text('Stock'),
|
Text('Stock'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Spacer(),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
|
children: <Widget>[
|
||||||
Column(
|
Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: new FaIcon(FontAwesomeIcons.industry),
|
icon: new FaIcon(FontAwesomeIcons.building),
|
||||||
tooltip: 'Suppliers',
|
tooltip: "Suppliers",
|
||||||
onPressed: _suppliers,
|
onPressed: _suppliers,
|
||||||
),
|
),
|
||||||
Text("Suppliers"),
|
Text("Suppliers"),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: <Widget>[
|
||||||
|
IconButton(
|
||||||
|
icon: FaIcon(FontAwesomeIcons.industry),
|
||||||
|
tooltip: "Manufacturers",
|
||||||
|
onPressed: _manufacturers,
|
||||||
|
),
|
||||||
|
Text("Manufacturers")
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: <Widget>[
|
||||||
|
IconButton(
|
||||||
|
icon: FaIcon(FontAwesomeIcons.userTie),
|
||||||
|
tooltip: "Customers",
|
||||||
|
onPressed: _customers,
|
||||||
|
),
|
||||||
|
Text("Customers"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user