2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Barcode refactor (#363)

* Move barcode.dart

* Fix

* Refactoring barcode scanner code:

- Abstract the "controller" class (for future development)
- Break barcode scanning code out into multiple files
- Add CameraBarcodeController class (qr_code_scanner)

* Add await

* Make barcode scan delay configurable

* remove unused import

* Handle camera exceptions

* Improve sequencing for camera scanner

- Show loading overlay
- Prevent reload if view is no longer mounted

* Update docstring

* Update release notes
This commit is contained in:
Oliver
2023-06-11 09:41:26 +10:00
committed by GitHub
parent 45fe79daf0
commit b051aeccda
17 changed files with 592 additions and 312 deletions

View File

@ -29,6 +29,9 @@ const String INV_STOCK_SHOW_TESTS = "stockShowTests";
const String INV_REPORT_ERRORS = "reportErrors";
const String INV_STRICT_HTTPS = "strictHttps";
// Barcode settings
const String INV_BARCODE_SCAN_DELAY = "barcodeScanDelay";
/*
* Class for storing InvenTree preferences in a NoSql DB
*/