shaxxx / flutter_barcode_listener

Flutter widget to listen for scanned barcode via hardware scanners
MIT License
45 stars 46 forks source link

only reading Lowercase on android. #31

Closed baconjuggling closed 1 year ago

baconjuggling commented 1 year ago

Scanning QR codes on android is returning the barcodes value, but only in lowercase, I've had a little play but cant seem to find a fix, any ideas?

danielroek commented 1 year ago

I think the scanner probably send the small letter with a shift-key modifier. This is what makes this library a bit hard to generalize, every scanner is different and we can't really support anything else than UTF-8.

baconjuggling commented 1 year ago

I made a basic fix for my project, that could potentially be implemented, perhaps with a optional caseSenstive: bool parameter.

fuadrivai commented 1 year ago

@baconjuggling hi, can u share me the code? i've tried to uppercase the character but doesnt work. thank you

baconjuggling commented 1 year ago

@baconjuggling hi, can u share me the code? i've tried to uppercase the character but doesnt work. thank you

It's available on my fork. it's currently only a fix for android though.

fuadrivai commented 1 year ago

@baconjuggling hi, can u share me the code? i've tried to uppercase the character but doesnt work. thank you

It's available on my fork. it's currently only a fix for android though.

Thanks, i will try it.

shaxxx commented 1 year ago

Closed due to lack of feedback.