Skip to content

Commit

Permalink
qr_code black screen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
allanclempe committed Jul 12, 2022
1 parent d7718fc commit 8f00ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/qrcode_reader_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ class _QRCodeReaderPageState extends State<QRCodeReaderPage> {
}
}
});

// workaround, sometimes it just gets black screen
// ref: https://github.com/juliuscanute/qr_code_scanner/issues/560
controller.pauseCamera();
controller.resumeCamera();
}

@override
Expand Down

0 comments on commit 8f00ccc

Please sign in to comment.