在颤振网络中扫描二维码的可能性

Set*_*ere 3 javascript qr-code dart progressive-web-apps flutter-web

我想构建一个基于 flutter web 的 PWA,它依赖于扫描二维码并访问用户的当前位置。

根据我对这两个功能的了解,目前没有可用的软件包。

但是,为了获取用户的位置,有一个 stackoverflow 线程(Get User's Location for flutter Web)提供了解决方案。

所以我想知道是否有可能针对 QR 扫描问题有类似的解决方案?

遗憾的是,我对 web 和 javascript 开发不是很熟悉。因此,任何帮助将不胜感激。

Set*_*ere 5

遵循这两篇文章,我设法在我的 Flutter Web 应用程序中使用了 jsQR 库。

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

通过这个,我现在可以在 flutter web 中扫描二维码。