mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Barcode refactor (#381)
* Simplify barcode scanning interface * Use consistent colors * Fix notches * Remove old comment
This commit is contained in:
parent
e9eb84eace
commit
925966c627
8 changed files with 45 additions and 50 deletions
|
|
@ -165,12 +165,9 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
child: Icon(Icons.qr_code_scanner),
|
||||
label: L10().scanIntoLocation,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) =>
|
||||
barcodeController(
|
||||
StockItemScanIntoLocationHandler(widget.item))
|
||||
)
|
||||
scanBarcode(
|
||||
context,
|
||||
handler: StockItemScanIntoLocationHandler(widget.item)
|
||||
).then((ctx) {
|
||||
refresh(context);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue