From fb8e506f3be927510eb715bc74caa55dc20a6c6c Mon Sep 17 00:00:00 2001 From: Khoren Markosyan Date: Sat, 20 Aug 2022 18:24:54 +0400 Subject: [PATCH] updated readme --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ae29476..15bc0d8 100644 --- a/README.md +++ b/README.md @@ -68,15 +68,18 @@ cameraController?.startImageStream((image) async { }); stopCameraProcessing(); // Call this in dispose -// To read barcode from XFile, String or url +// To read barcode from XFile, String, url or Uint8List bytes XFile xFile = XFile('Your image path'); -CodeResult? resultFromXFile = await readImagePath(xFile); +CodeResult? resultFromXFile = await readBarcodeImagePath(xFile); -String path = 'Your image path'; -CodeResult? resultFromPath = await readImagePathString(path); +String path = 'Your local image path'; +CodeResult? resultFromPath = await readBarcodeImagePathString(path); -String url = 'Your image url'; -CodeResult? resultFromUrl = await readImageUrl(url); +String url = 'Your remote image url'; +CodeResult? resultFromUrl = await readBarcodeImageUrl(url); + +Uint8List bytes = Uint8List.fromList(yourImageBytes); +CodeResult? resultFromBytes = await readBarcode(bytes); ``` ### To create barcode: