Possibilities to scan qr-code in flutter web

丶灬走出姿态 提交于 2021-02-11 06:16:12

问题


I want to build a PWA based on flutter web which relies on scanning a QR-Code and accessing the user's current position.

From my point of knowledge for both functionalities there are currently no packages available.

However for getting the user's location there is a stackoverflow thread (Get User's Location for flutter Web) providing a solution.

So I'm wondering if there is any chance that there is a similar solution for the QR-Scanning issue?

Sadly, I'm not very familiar with web and javascript development. So any help would be highly appreciated.


回答1:


Following these two articels, I managed to use the jsQR Library in my flutter web application.

https://medium.com/@mk.pyts/how-to-access-webcam-video-stream-in-flutter-for-web-1bdc74f2e9c7

https://medium.com/flutter-community/using-javascript-code-in-flutter-web-903de54a2000

https://github.com/cozmo/jsQR

By this, I'm now able to scan a QR-code in flutter web.



来源:https://stackoverflow.com/questions/64283370/possibilities-to-scan-qr-code-in-flutter-web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!