diff --git a/lib/widget/stock_detail.dart b/lib/widget/stock_detail.dart index 54cf2927..0c03c407 100644 --- a/lib/widget/stock_detail.dart +++ b/lib/widget/stock_detail.dart @@ -34,6 +34,7 @@ class _StockItemDisplayState extends State { final _removeStockKey = GlobalKey(); final _countStockKey = GlobalKey(); final _moveStockKey = GlobalKey(); + final _editStockKey = GlobalKey(); _StockItemDisplayState(this.item) { // TODO @@ -45,7 +46,32 @@ class _StockItemDisplayState extends State { // TODO - Form for editing stock item } - void _addStock(double quantity) async { + void _editStockItemDialog() { + + return; + // TODO - Finish implementing this + + showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: Text("Edit Stock Item"), + actions: [ + FlatButton( + child: Text("Save"), + onPressed: () { + if (_editStockKey.currentState.validate()) { + // TODO + } + }, + ) + ], + ); + } + ); + } + + void _addStock() async { Navigator.of(context).pop();