diff --git a/lib/widget/stock_detail.dart b/lib/widget/stock_detail.dart index 80a66331..a76873e5 100644 --- a/lib/widget/stock_detail.dart +++ b/lib/widget/stock_detail.dart @@ -92,11 +92,7 @@ class _StockItemDisplayState extends State { _notesController.clear(); // TODO - Handle error cases - - await item.reload(); - - setState(() {}); - + _refresh(); } void _addStockDialog() async { @@ -162,9 +158,7 @@ class _StockItemDisplayState extends State { // TODO - Handle error cases - await item.reload(); - - setState(() {}); + _refresh(); } void _removeStockDialog() { @@ -233,10 +227,7 @@ class _StockItemDisplayState extends State { // TODO - Handle error cases - await item.reload(); - - setState(() {}); - + _refresh(); } void _countStockDialog() async {