flutter_qr_mobile_vision icon indicating copy to clipboard operation
flutter_qr_mobile_vision copied to clipboard

[Feature Request] Support for getDisplayValue()

Open vgtle opened this issue 4 years ago • 1 comments

Currently the raw value is returned from the scanner. While this is suitable for some cases, when using different formats, it get difficult to extract the actual value from the code returned from this library as this is different for each format. Beside the getRawValue() (See Documentation), it also possible to use getDisplayValue(). As this package tries to be simple and hide any complex configuration, switching to getDisplayValue() or adding an option to also return the getDisplayValue(): qrCodeCallback: (rawCode, displayCode) { ... }, could be a good option to not worry about the underlaying scanner format. I already implement this feature for myself (See Fork) and i hope that a good option can be found to support this.

vgtle avatar Mar 30 '21 20:03 vgtle

If providing both options in the qrCodeCallback is a valid option, I would not mind to implement this and provide a PR for this

vgtle avatar Mar 30 '21 20:03 vgtle