Skip to content

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

@kate-abracosa

Description

@kate-abracosa

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions