mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
Merge branch 'krille/fix-qr-code' into 'main'
chore: Follow up fix qr code scanner See merge request famedly/fluffychat!895
This commit is contained in:
commit
f89a70ea9d
@ -59,6 +59,12 @@ class _QrScannerModalState extends State<QrScannerModal> {
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user