'How to open a document when QR code is scanned using Flutter
I am developing a Flutter application to scan QR code and to automatically show the document associated with it. I have some set of documents with unique identifiers stored in Firebase storage. Once, I scan the QR code, it needs to be assigned to a identifier and then display the document.
I implemented the code to scan qr code and redirect to a url or a raw content string information using barcode_scan plugin. But I am not sure how we can redirect to a file stored in Firebase.
Future<void> _scan() async {
ScanResult codescan = await BarcodeScanner.scan(),
);
setState(() {
qrCode = codescan.rawContent;
});
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
