Update form field with scanned barcode

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

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(