Web support based on Cozmo jsQR.
In pubspec.yaml
dependencies:
tekartik_qrscan_flutter_web:
git:
url: https://github.com/tekartik/app_camera.dart
path: qrscan_flutter_web
ref: dart3a
version: '>=0.1.0'
...
flutter:
# Export jsQR
assets:
- packages/tekartik_js_qr/js_qr.js
In your index.html
file (could be at the end of the body section, before main.dart.js
):
<script src="assets/packages/tekartik_js_qr/js/js_qr.js" type="application/javascript"></script>
var qrCodeData = await scanQrCode(context, title: 'Scan QR code');