Flutter Qr_Code_Scanner 404, No barcode scanner found ios

1.1k views Asked by At

I'm using the qr_code_scanner package and getting an error like this on ios.

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: CameraException(404, No barcode scanner found)
#0 QRViewController.resumeCamera
package:qr_code_scanner/src/qr_code_scanner.dart:304
<asynchronous suspension>

how can i solve this

2

There are 2 answers

0
Gprakash On

Use this qr_code_scanner: ^1.0.1

0
Zeshan Ali On

If you are using any buttons to close the QR scanner, then make sure to clear the controller like this.

 _controller = null;

I hope it'll help.