From 6bdf84e270a016fa03eaf5e642e03dccfb0f6a8e Mon Sep 17 00:00:00 2001 From: Khoren Markosyan Date: Thu, 9 Jun 2022 13:29:59 +0400 Subject: [PATCH] update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d5f5b7c..e191f11 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Widget build(BuildContext context) { // Or use FlutterZxing // To read barcode from camera image directly +await FlutterZxing.startCameraProcessing(); // Call this in initState cameraController?.startImageStream((image) async { CodeResult result = await FlutterZxing.processCameraImage(image); if (result.isValidBool) { @@ -55,6 +56,7 @@ cameraController?.startImageStream((image) async { } return null; }); +FlutterZxing.stopCameraProcessing(); // Call this in dispose // To read barcode from XFile, String or url XFile xFile = XFile('Your image path');