diff --git a/README.md b/README.md index adbe983..ea34be0 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ final Encode result = zx.encodeBarcode( ), ); if (result.isValid) { - final img = imglib.Image.fromBytes(width, height, result.bytes); + final img = imglib.Image.fromBytes(width, height, result.data); final encodedBytes = Uint8List.fromList(imglib.encodeJpg(img)); // use encodedBytes as you wish } diff --git a/example/pubspec.lock b/example/pubspec.lock index 3f76666..48c3d0a 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -148,7 +148,7 @@ packages: path: ".." relative: true source: path - version: "0.10.0" + version: "1.0.0-beta.1" font_awesome_flutter: dependency: "direct main" description: @@ -359,4 +359,4 @@ packages: version: "6.1.0" sdks: dart: ">=2.18.0 <3.0.0" - flutter: ">=3.0.0" + flutter: ">=3.3.0" diff --git a/src/native_zxing.cpp b/src/native_zxing.cpp index 03fea67..3217cc2 100644 --- a/src/native_zxing.cpp +++ b/src/native_zxing.cpp @@ -23,7 +23,7 @@ extern "C" FUNCTION_ATTRIBUTE char const *version() { - return "1.4.0"; + return "2.0.0"; } FUNCTION_ATTRIBUTE