diff --git a/lib/barcode/camera_controller.dart b/lib/barcode/camera_controller.dart index d7147ce7..94031e8d 100644 --- a/lib/barcode/camera_controller.dart +++ b/lib/barcode/camera_controller.dart @@ -71,6 +71,12 @@ class _CameraBarcodeControllerState extends InvenTreeBarcodeControllerState { @override Future resumeScan() async { + + // Do not attempt to resume if the widget is not mounted + if (!mounted) { + return; + } + try { await _controller?.resumeCamera(); } on CameraException {