khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
92 stars 52 forks source link

Feature request: Desktop support #36

Open dainnilsson opened 1 year ago

dainnilsson commented 1 year ago

Hello! Thanks for the work on this project!

I'd like to request desktop support (windows, MacOS and Linux) in this project. I'm not sure if it's in the scope of this project to capture from video streams or not on these platforms, but I think just being able to provide an image buffer and scan it for a QR code would be very useful. I can't help with development, but I can help with testing if needed!

khoren93 commented 1 year ago

Hi @dainnilsson

This project uses the official camera plugin, which does not support desktop platforms at the moment. But in the future, when possible, I plan to add support for desktop platforms.

Track Linux status Track MacOS status Track image stream support on Windows

Thanks!

dainnilsson commented 1 year ago

Got it, thanks! Would it be possible to just provide an API for detecting and decoding a QR code from an image on desktop? That would be sufficient for my use case at least, and would probably be required anyway once the camera plugin supports desktop.

khoren93 commented 1 year ago

I think it will be possible, I will work on it.

khoren93 commented 1 year ago

Hi @dainnilsson

Desktop platforms are now supported in the v1.0.0 beta version. You can use this version to detect and decode QR codes from images on desktop platforms.