Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kate-abracosa opened this issue Nov 24, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kate-abracosa
Copy link

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.

@kate-abracosa kate-abracosa added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants