mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-03 22:15:30 +00:00
Add intent wedge scanner, MDM support for Android (#863)
Add Android intent wedge scanner support with auto configuration for supported Zebra and Datalogic devices. Intent wedge scans can be done without pressing the scan button first. Adds the ability for an MDM server to push settings on Android.
This commit is contained in:
1 parent
2cc5d37f71
commit
ca655f36fe
12 files changed
+1114
-1
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import "dart:io";
|
||||
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter_tabler_icons/flutter_tabler_icons.dart";
|
||||
|
||||
@@ -112,6 +114,8 @@ class _InvenTreeBarcodeSettingsState
|
||||
Widget? barcodeInputIcon;
|
||||
|
||||
switch (barcodeScanType) {
|
||||
case BARCODE_CONTROLLER_INTENT:
|
||||
barcodeInputIcon = Icon(TablerIcons.arrow_badge_right);
|
||||
case BARCODE_CONTROLLER_WEDGE:
|
||||
barcodeInputIcon = Icon(Icons.barcode_reader);
|
||||
case BARCODE_CONTROLLER_CAMERA:
|
||||
@@ -143,6 +147,12 @@ class _InvenTreeBarcodeSettingsState
|
||||
subtitle: Text(L10().scannerExternalDetail),
|
||||
leading: Icon(Icons.barcode_reader),
|
||||
),
|
||||
if (Platform.isAndroid)
|
||||
ListTile(
|
||||
title: Text(L10().scannerIntent),
|
||||
subtitle: Text(L10().scannerIntentDetail),
|
||||
leading: Icon(TablerIcons.arrow_badge_right),
|
||||
),
|
||||
],
|
||||
onSelected: (idx) async {
|
||||
barcodeScanType = idx as int;
|
||||
|
||||
Reference in new issue
Block a user