mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
parent
4f6dbce921
commit
c6e90741b7
1 changed files with 4 additions and 5 deletions
|
@ -68,12 +68,11 @@ class _BarcodeScannerSimpleState extends State<BarcodeScannerSimple> {
|
|||
void _handleBarcodeInternal(BarcodeCapture barcodes) {
|
||||
for (final barcode in barcodes.barcodes) {
|
||||
// don't handle unknown QR codes
|
||||
var rawValue = barcode.rawValue?.toLowerCase();
|
||||
if (rawValue?.trim().isEmpty??false == false) continue;
|
||||
if (rawValue!.startsWith("ur:")) {
|
||||
if (urCodes.contains(rawValue)) continue;
|
||||
if (barcode.rawValue?.trim().isEmpty??false == false) continue;
|
||||
if (barcode.rawValue!.startsWith("ur:")) {
|
||||
if (urCodes.contains(barcode.rawValue)) continue;
|
||||
setState(() {
|
||||
urCodes.add(rawValue!);
|
||||
urCodes.add(barcode.rawValue!);
|
||||
ur = URQRToURQRData(urCodes);
|
||||
});
|
||||
if (ur.progress == 1) {
|
||||
|
|
Loading…
Reference in a new issue