2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Refactor display for StockLocation

This commit is contained in:
Oliver Walters
2021-01-29 00:52:15 +11:00
parent c00e367ae5
commit 3433d57f83
2 changed files with 124 additions and 39 deletions

View File

@ -41,6 +41,16 @@ class BarcodeHandler {
Future<void> onBarcodeUnknown(Map<String, dynamic> data) {
// Called when the server does not know about a barcode
// Override this function
showErrorDialog(
_context,
"Invalid Barcode",
"Barcode does not match any known item",
error: "Barcode Error",
icon: FontAwesomeIcons.barcode,
onDismissed: () {
_controller.resumeCamera();
}
);
}
Future<void> onBarcodeUnhandled(Map<String, dynamic> data) {