Skip to content

Commit

Permalink
feat: add qr max size
Browse files Browse the repository at this point in the history
  • Loading branch information
sspzoa committed Dec 22, 2024
1 parent 27400ac commit 90c48b7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/app/pages/home/widgets/qr_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@ class QRArea extends StatelessWidget {
child: Center(
child: Padding(
padding: const EdgeInsets.all(16),
child: QrImageView.withQr(
qr: QrCode(
5,
QrErrorCorrectLevel.L,
)..addAlphaNumeric(payload),
child: ConstrainedBox(
constraints: const BoxConstraints(
maxWidth: 180,
maxHeight: 180,
),
child: QrImageView.withQr(
qr: QrCode(
5,
QrErrorCorrectLevel.L,
)..addAlphaNumeric(payload),
),
),
),
),
Expand Down

0 comments on commit 90c48b7

Please sign in to comment.