Skip to content

ErrorStateBuilder does not work if input String is too long #229

@prudok

Description

@prudok

I have read the documentation that describes when errorStateBuilder field should be triggered (ex. input String value is too long), but if input is a big String, the field doesn't work correctly. When QrImageView uses its own build method it validates input with QrValidator.validate() method which should check size of given String and if it is out of bounds returns QrValidationStatus.contentTooLong status (including checking selected errorCorrectionLevel and version). If I understand something wrong, please explain to me how to properly trigger errorStateBuilder.

To Reproduce
Steps to reproduce the behavior:

  1. Use QrImageView with too long string (ex. 'test' * 999);
  2. Fill the errorStateBuilder of desired widget you want to show as error widget;
  3. See uncaught error.

Expected behavior

  1. When input String is out of bounds of selected QrCode type (including correctionLevel, version fields selected) show widget from errorStateBuilder field.

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