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:
- Use QrImageView with too long string (ex. 'test' * 999);
- Fill the
errorStateBuilder of desired widget you want to show as error widget;
- See uncaught error.
Expected behavior
- When input String is out of bounds of selected QrCode type (including
correctionLevel, version fields selected) show widget from errorStateBuilder field.
I have read the documentation that describes when
errorStateBuilderfield should be triggered (ex. input String value is too long), but if input is a big String, the field doesn't work correctly. WhenQrImageViewuses its own build method it validates input withQrValidator.validate()method which should check size of given String and if it is out of bounds returnsQrValidationStatus.contentTooLongstatus (including checking selectederrorCorrectionLevelandversion). If I understand something wrong, please explain to me how to properly triggererrorStateBuilder.To Reproduce
Steps to reproduce the behavior:
errorStateBuilderof desired widget you want to show as error widget;Expected behavior
correctionLevel,versionfields selected) show widget fromerrorStateBuilderfield.