Update form field with scanned barcode

This commit is contained in:
Oliver committed 2021-10-03 11:41:16 +11:00
1 parent 6288088a65
commit f75aa4ca0e
2 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -332,9 +332,9 @@ class APIFormField {
trailing: IconButton(
icon: FaIcon(FontAwesomeIcons.qrcode),
onPressed: () async {
var handler = UniqueBarcodeHandler((String hash) {
print("Scanned barcode: " + hash);
controller.text = hash;
data["value"] = hash;
});
Navigator.push(