mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
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:
parent
c88809133f
commit
4fe2be3c92
3 changed files with 19 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue