From 08e23039c08599dd9ba37ff8b82334daf93e4ff6 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 9 Apr 2020 08:29:47 +1000 Subject: [PATCH] Placeholder callback functions --- lib/widget/stock_detail.dart | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/lib/widget/stock_detail.dart b/lib/widget/stock_detail.dart index 407dc5f3..5155c614 100644 --- a/lib/widget/stock_detail.dart +++ b/lib/widget/stock_detail.dart @@ -32,6 +32,26 @@ class _StockItemDisplayState extends State { 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. * The number of elements may vary depending on the StockItem details @@ -50,7 +70,7 @@ class _StockItemDisplayState extends State { ), trailing: IconButton( icon: FaIcon(FontAwesomeIcons.edit), - onPressed: null, + onPressed: _editStockItem, ) ) ) @@ -178,28 +198,28 @@ class _StockItemDisplayState extends State { buttons.add(SpeedDialChild( child: Icon(Icons.add_circle), label: "Add Stock", - onTap: null, + onTap: _addStock, ) ); buttons.add(SpeedDialChild( child: Icon(Icons.remove_circle), label: "Remove Stock", - onTap: null, + onTap: _removeStock, ), ); buttons.add(SpeedDialChild( child: Icon(Icons.check_circle), label: "Count Stock", - onTap: null, + onTap: _countStock, )); } buttons.add(SpeedDialChild( child: Icon(Icons.location_on), label: "Transfer Stock", - onTap: null, + onTap: _transferStock, )); return buttons;