mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +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
|
|
@ -91,11 +91,9 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
child: FaIcon(FontAwesomeIcons.qrcode),
|
||||
label: L10().barcodeScanItem,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) =>
|
||||
barcodeController(
|
||||
StockLocationScanInItemsHandler(location!)))
|
||||
scanBarcode(
|
||||
context,
|
||||
handler: StockLocationScanInItemsHandler(location!),
|
||||
).then((value) {
|
||||
refresh(context);
|
||||
});
|
||||
|
|
@ -111,11 +109,9 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
child: FaIcon(FontAwesomeIcons.qrcode),
|
||||
label: L10().transferStockLocation,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) =>
|
||||
barcodeController(ScanParentLocationHandler(location!))
|
||||
)
|
||||
scanBarcode(
|
||||
context,
|
||||
handler: ScanParentLocationHandler(location!),
|
||||
).then((value) {
|
||||
refresh(context);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue