mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 04:19:50 +00:00
feat(ui): add app logo to qr code (#2072)
fix(ui): use high instead of low error correction for QR codes
This commit is contained in:
parent
85d3e727e2
commit
17d99e5451
2 changed files with 3 additions and 1 deletions
BIN
assets/images/qr-cake.png
Normal file
BIN
assets/images/qr-cake.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
|
@ -1,3 +1,4 @@
|
|||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:qr_flutter/qr_flutter.dart' as qr;
|
||||
|
||||
|
@ -8,7 +9,7 @@ class QrImage extends StatelessWidget {
|
|||
this.backgroundColor = Colors.white,
|
||||
this.size = 100.0,
|
||||
this.version,
|
||||
this.errorCorrectionLevel = qr.QrErrorCorrectLevel.L,
|
||||
this.errorCorrectionLevel = qr.QrErrorCorrectLevel.H,
|
||||
});
|
||||
|
||||
final double size;
|
||||
|
@ -28,6 +29,7 @@ class QrImage extends StatelessWidget {
|
|||
foregroundColor: foregroundColor,
|
||||
backgroundColor: backgroundColor,
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
embeddedImage: AssetImage('assets/images/qr-cake.png'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue