theyakka/qr.flutter

QR Code still generating even if data is null and errorStateBuilder is not showing

Opened this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. When the data pass is null a QR image is still generated when it should show an errorBuilder itself

Align(
alignment: Alignment.center,
child: QrImageView(
data: dynamicQrData!,
version: 2,
size: 250.0,
errorCorrectionLevel: 2,
errorStateBuilder: (cxt, err) {
return const Center(
child: Text(
'Uh oh! Something went wrong...',
textAlign: TextAlign.center,
),
);
},
),
),

Expected behavior
it should show the Uh Oh something unexpected error happened.