2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Update packages

- Trying to find source of null check bug
This commit is contained in:
Oliver Walters
2022-03-29 19:43:38 +11:00
parent 139b166a5e
commit c78dd7cfa5
4 changed files with 71 additions and 35 deletions

View File

@ -69,6 +69,10 @@ class BarcodeHandler {
print("Scanned barcode data: ${barcode}");
if (barcode.isEmpty) {
return;
}
var response = await InvenTreeAPI().post(
url,
body: {
@ -491,7 +495,10 @@ class _QRViewState extends State<InvenTreeQRView> {
_controller = controller;
controller.scannedDataStream.listen((barcode) {
_controller?.pauseCamera();
_handler.processBarcode(context, _controller, barcode.code);
if (barcode.code != null) {
_handler.processBarcode(context, _controller, barcode.code ?? "");
}
});
}