mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Update packages
- Trying to find source of null check bug
This commit is contained in:
parent
139b166a5e
commit
c78dd7cfa5
4 changed files with 71 additions and 35 deletions
|
|
@ -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 ?? "");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue