mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 02:05:29 +00:00
Scan QR code now working!
- Navigate to a StockLocation
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
import 'package:InvenTree/inventree/stock.dart';
|
||||
import 'package:InvenTree/widget/category_display.dart';
|
||||
import 'package:InvenTree/widget/location_display.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:qr_utils/qr_utils.dart';
|
||||
import 'barcode.dart';
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'settings.dart';
|
||||
import 'api.dart';
|
||||
@ -115,9 +118,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
}
|
||||
|
||||
void _scanCode() async {
|
||||
QrUtils.scanQR.then((String result) {
|
||||
print("Scanned: $result");
|
||||
});
|
||||
scanQrCode(context);
|
||||
}
|
||||
|
||||
void _showStock() {
|
||||
|
Reference in New Issue
Block a user