Refactor barcode scann function

- Provide a custom callback to be executed when the barcode is scanned
This commit is contained in:
Oliver committed 2021-10-03 12:04:01 +11:00
1 parent f75aa4ca0e
commit 4f8794e652
4 files changed
+67 -105

No files matched your search

+7
View File
@@ -335,6 +335,13 @@ class APIFormField {
var handler = UniqueBarcodeHandler((String hash) {
controller.text = hash;
data["value"] = hash;
successTone();
showSnackIcon(
L10().barcodeAssigned,
success: true
);
});
Navigator.push(