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

[Feature Request] Support for getDisplayValue() #172

Open
vgtle opened this issue Mar 30, 2021 · 1 comment
Open

[Feature Request] Support for getDisplayValue() #172

vgtle opened this issue Mar 30, 2021 · 1 comment

Comments

@vgtle
Copy link

vgtle commented Mar 30, 2021

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
Copy link
Author

vgtle commented Mar 30, 2021

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

jFelipeSantana-ma9 added a commit to jFelipeSantana-ma9/flutter_qr_mobile_vision that referenced this issue Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant