mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-14 03:05:32 +00:00
Update packages
- Trying to find source of null check bug
This commit is contained in:
@ -91,7 +91,7 @@ class InvenTreeFileService extends FileService {
|
||||
_client = client ?? HttpClient();
|
||||
|
||||
if (_client != null) {
|
||||
_client?.badCertificateCallback = (cert, host, port) {
|
||||
_client!.badCertificateCallback = (cert, host, port) {
|
||||
print("BAD CERTIFICATE CALLBACK FOR IMAGE REQUEST");
|
||||
return !strictHttps;
|
||||
};
|
||||
|
@ -69,6 +69,10 @@ class BarcodeHandler {
|
||||
|
||||
print("Scanned barcode data: ${barcode}");
|
||||
|
||||
if (barcode.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
var response = await InvenTreeAPI().post(
|
||||
url,
|
||||
body: {
|
||||
@ -491,7 +495,10 @@ class _QRViewState extends State<InvenTreeQRView> {
|
||||
_controller = controller;
|
||||
controller.scannedDataStream.listen((barcode) {
|
||||
_controller?.pauseCamera();
|
||||
_handler.processBarcode(context, _controller, barcode.code);
|
||||
|
||||
if (barcode.code != null) {
|
||||
_handler.processBarcode(context, _controller, barcode.code ?? "");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user