mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Update form field with scanned barcode
This commit is contained in:
parent
6288088a65
commit
f75aa4ca0e
2 changed files with 9 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue