fix node QR Code URI parsing (#1916)

* fix:node QR Code URI parsing

* optionally include user data

* fix for qr scaner
This commit is contained in:
Serhii 2025-01-24 20:05:08 +02:00 committed by GitHub
parent c88809133f
commit 4fe2be3c92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 16 deletions

View file

@ -23,7 +23,7 @@ Future<String> presentQRScanner(BuildContext context) async {
),
);
isQrScannerShown = false;
return result??'';
return result!;
} catch (e) {
isQrScannerShown = false;
rethrow;
@ -95,9 +95,7 @@ class _BarcodeScannerSimpleState extends State<BarcodeScannerSimple> {
setState(() {
popped = true;
});
SchedulerBinding.instance.addPostFrameCallback((_) {
Navigator.of(context).pop(_barcode?.rawValue ?? "");
});
Navigator.of(context).pop(_barcode!.rawValue ?? _barcode!.rawBytes);
}
}
}