2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-02 15:28:53 +00:00

Add barcode scan context

This commit is contained in:
Oliver Walters 2022-05-10 18:26:55 +10:00
parent 610f6533d0
commit e2ed80f2d0
2 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@ class BarcodeHandler {
"valid": response.isValid().toString(),
"error": response.error,
"errorDetail": response.errorDetail,
"overlayText": getOverlayText(context),
}
);
} else if (data.containsKey("error")) {

View File

@ -233,7 +233,7 @@ class InvenTreeModel {
return {};
}
Future<void> reportModelError(String title, APIResponse response, {Map<String, String> context = {}}) async {
Future<void> reportModelError(String title, APIResponse response, {Map<String, String> context = const {}}) async {
String dataString = response.data?.toString() ?? "null";