Skip to content

Commit b127c72

Browse files
fix double pop (#310)
1 parent fee3577 commit b127c72

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### **1.4.7** (2025-08-11)
2+
- Fix qr code scanning for addresses
3+
14
### **1.4.6** (2025-07-22)
25
- Fix file import for ROAST groups
36

lib/screens/qrcode_scanner.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class QRScanner extends StatefulWidget {
1515
class _QRScannerState extends State<QRScanner> {
1616
late QRViewController controller;
1717
final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
18+
bool _hasScannedAndNavigated = false;
1819

1920
@override
2021
void reassemble() {
@@ -90,7 +91,8 @@ class _QRScannerState extends State<QRScanner> {
9091

9192
controller.scannedDataStream.listen(
9293
(scanData) async {
93-
if (!mounted) return;
94+
if (!mounted || _hasScannedAndNavigated) return;
95+
_hasScannedAndNavigated = true;
9496
await Navigator.maybeOf(context)!.maybePop(scanData.code);
9597
},
9698
);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: peercoin
22
description: A new Peercoin wallet.
33

4-
version: 1.4.6+155
4+
version: 1.4.7+156
55
environment:
66
sdk: '>=3.2.0 <4.0.0'
77

0 commit comments

Comments
 (0)