问题
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