diff --git a/lib/pages/new_private_chat/qr_scanner_modal.dart b/lib/pages/new_private_chat/qr_scanner_modal.dart index d6fcb6cd..73689141 100644 --- a/lib/pages/new_private_chat/qr_scanner_modal.dart +++ b/lib/pages/new_private_chat/qr_scanner_modal.dart @@ -59,6 +59,12 @@ class _QrScannerModalState extends State { void _onQRViewCreated(QRViewController controller) { this.controller = controller; + // Workaround for QR Scanner is started in Pause mode + // https://github.com/juliuscanute/qr_code_scanner/issues/538#issuecomment-1133883828 + if (Platform.isAndroid) { + controller.pauseCamera(); + } + controller.resumeCamera(); late StreamSubscription sub; sub = controller.scannedDataStream.listen((scanData) { sub.cancel();