feat(ui): add app logo to qr code (#2072)
fix(ui): use high instead of low error correction for QR codes
cyan committed
Jun 17, 2025 at 00:32 UTC
17d99e5451d33408859570a80d7c8e502d0d296b
2 files changed
+3
-1
assets/images/qr-cake.png
Binary files /dev/null and b/assets/images/qr-cake.png differ
lib/src/screens/receive/widgets/qr_image.dart
+3
-1
@@ -1,3 +1,4 @@
1
+import 'package:cake_wallet/wallet_type_utils.dart';
2
import 'package:flutter/material.dart';
3
import 'package:qr_flutter/qr_flutter.dart' as qr;
4
@@ -8,7 +9,7 @@ class QrImage extends StatelessWidget {
9
this.backgroundColor = Colors.white,
10
this.size = 100.0,
11
this.version,
11
- this.errorCorrectionLevel = qr.QrErrorCorrectLevel.L,
12
+ this.errorCorrectionLevel = qr.QrErrorCorrectLevel.H,
13
});
14
15
final double size;
@@ -28,6 +29,7 @@ class QrImage extends StatelessWidget {
29
foregroundColor: foregroundColor,
30
backgroundColor: backgroundColor,
31
padding: const EdgeInsets.all(8.0),
32
+ embeddedImage: AssetImage('assets/images/qr-cake.png'),
33
);
34
}
35
}