From 11c71257de4cdf84172cae902cbdce36d2f3fddb Mon Sep 17 00:00:00 2001 From: Khoren Markosyan Date: Fri, 6 Jan 2023 21:58:13 +0400 Subject: [PATCH] updated README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ce192a5..b49bea6 100644 --- a/README.md +++ b/README.md @@ -115,13 +115,15 @@ Widget build(BuildContext context) { ); // Or use FlutterZxing to create barcode directly -final result = zx.encodeBarcode( - 'Text to encode', - format: Format.QRCode, - width: 120, - height: 120, - margin: 10, - eccLevel: 0, +final Encode result = zx.encodeBarcode( + contents: 'Text to encode', + params: EncodeParams( + format: Format.QRCode, + width: 120, + height: 120, + margin: 10, + eccLevel: 0, + ), ); if (result.isValid) { final img = imglib.Image.fromBytes(width, height, result.bytes);