mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	Adjust calls in barcode.dart to match example
This commit is contained in:
		| @@ -489,6 +489,8 @@ class InvenTreeQRView extends StatefulWidget { | ||||
|  | ||||
| class _QRViewState extends State<InvenTreeQRView> { | ||||
|  | ||||
|   final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); | ||||
|  | ||||
|   QRViewController? _controller; | ||||
|  | ||||
|   final BarcodeHandler _handler; | ||||
| @@ -500,17 +502,16 @@ class _QRViewState extends State<InvenTreeQRView> { | ||||
|   @override | ||||
|   void reassemble() { | ||||
|     super.reassemble(); | ||||
|  | ||||
|     if (Platform.isAndroid) { | ||||
|       _controller?.pauseCamera(); | ||||
|     } else if (Platform.isIOS) { | ||||
|       _controller?.resumeCamera(); | ||||
|       _controller!.pauseCamera(); | ||||
|     } | ||||
|  | ||||
|     _controller!.resumeCamera(); | ||||
|   } | ||||
|  | ||||
|   _QRViewState(this._handler) : super(); | ||||
|  | ||||
|   final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); | ||||
|  | ||||
|   void _onViewCreated(QRViewController controller) { | ||||
|     _controller = controller; | ||||
|     controller.scannedDataStream.listen((barcode) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user