From 113b3d69a9fce874a0a6cbe1dc50f6d897e7582c Mon Sep 17 00:00:00 2001 From: simonkuehling Date: Sun, 19 Feb 2023 11:07:47 +0100 Subject: [PATCH] skip SnackIcon banner when opening a view from successful barcode scan (#266) (#267) --- lib/barcode.dart | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/barcode.dart b/lib/barcode.dart index 77dbb40c..3c77cd66 100644 --- a/lib/barcode.dart +++ b/lib/barcode.dart @@ -189,11 +189,6 @@ class BarcodeScanHandler extends BarcodeHandler { */ Future handlePart(int pk) async { InvenTreePart().get(pk).then((var part) { - showSnackIcon( - L10().part, - success: true, - icon: Icons.qr_code, - ); // Dismiss the barcode scanner OneContext().pop(); @@ -208,11 +203,6 @@ class BarcodeScanHandler extends BarcodeHandler { */ Future handleStockItem(int pk) async { InvenTreeStockItem().get(pk).then((var item) { - showSnackIcon( - L10().stockItem, - success: true, - icon: Icons.qr_code, - ); OneContext().pop(); if (item is InvenTreeStockItem) { OneContext().push(MaterialPageRoute( @@ -227,11 +217,6 @@ class BarcodeScanHandler extends BarcodeHandler { Future handleStockLocation(int pk) async { InvenTreeStockLocation().get(pk).then((var loc) { if (loc is InvenTreeStockLocation) { - showSnackIcon( - L10().stockLocation, - success: true, - icon: Icons.qr_code, - ); OneContext().pop(); OneContext().navigator.push(MaterialPageRoute( builder: (context) => LocationDisplayWidget(loc))); @@ -244,12 +229,6 @@ class BarcodeScanHandler extends BarcodeHandler { */ Future handleSupplierPart(int pk) async { InvenTreeSupplierPart().get(pk).then((var supplierpart) { - showSnackIcon( - L10().supplierPart, - success: true, - icon: Icons.qr_code, - ); - OneContext().pop(); if (supplierpart is InvenTreeSupplierPart) {