mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-29 05:56:47 +00:00
Placeholder callback functions
This commit is contained in:
parent
a64f46d79c
commit
08e23039c0
@ -32,6 +32,26 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||||||
|
|
||||||
final InvenTreeStockItem item;
|
final InvenTreeStockItem item;
|
||||||
|
|
||||||
|
void _editStockItem() {
|
||||||
|
// TODO - Form for editing stock item
|
||||||
|
}
|
||||||
|
|
||||||
|
void _addStock() {
|
||||||
|
// TODO - Form for adding stock
|
||||||
|
}
|
||||||
|
|
||||||
|
void _removeStock() {
|
||||||
|
// TODO - Form for removing stock
|
||||||
|
}
|
||||||
|
|
||||||
|
void _countStock() {
|
||||||
|
// TODO - Form for counting stock
|
||||||
|
}
|
||||||
|
|
||||||
|
void _transferStock() {
|
||||||
|
// TODO - Form for transferring stock
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Construct a list of detail elements about this StockItem.
|
* Construct a list of detail elements about this StockItem.
|
||||||
* The number of elements may vary depending on the StockItem details
|
* The number of elements may vary depending on the StockItem details
|
||||||
@ -50,7 +70,7 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||||||
),
|
),
|
||||||
trailing: IconButton(
|
trailing: IconButton(
|
||||||
icon: FaIcon(FontAwesomeIcons.edit),
|
icon: FaIcon(FontAwesomeIcons.edit),
|
||||||
onPressed: null,
|
onPressed: _editStockItem,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -178,28 +198,28 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.add_circle),
|
child: Icon(Icons.add_circle),
|
||||||
label: "Add Stock",
|
label: "Add Stock",
|
||||||
onTap: null,
|
onTap: _addStock,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.remove_circle),
|
child: Icon(Icons.remove_circle),
|
||||||
label: "Remove Stock",
|
label: "Remove Stock",
|
||||||
onTap: null,
|
onTap: _removeStock,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.check_circle),
|
child: Icon(Icons.check_circle),
|
||||||
label: "Count Stock",
|
label: "Count Stock",
|
||||||
onTap: null,
|
onTap: _countStock,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.location_on),
|
child: Icon(Icons.location_on),
|
||||||
label: "Transfer Stock",
|
label: "Transfer Stock",
|
||||||
onTap: null,
|
onTap: _transferStock,
|
||||||
));
|
));
|
||||||
|
|
||||||
return buttons;
|
return buttons;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user