Browse Source

bug fixes

pull/76/head
Khoren Markosyan 2 years ago
parent
commit
6886abcaa9
  1. 2
      README.md
  2. 4
      example/pubspec.lock
  3. 2
      src/native_zxing.cpp

2
README.md

@ -126,7 +126,7 @@ final Encode result = zx.encodeBarcode(
), ),
); );
if (result.isValid) { 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)); final encodedBytes = Uint8List.fromList(imglib.encodeJpg(img));
// use encodedBytes as you wish // use encodedBytes as you wish
} }

4
example/pubspec.lock

@ -148,7 +148,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.10.0" version: "1.0.0-beta.1"
font_awesome_flutter: font_awesome_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
@ -359,4 +359,4 @@ packages:
version: "6.1.0" version: "6.1.0"
sdks: sdks:
dart: ">=2.18.0 <3.0.0" dart: ">=2.18.0 <3.0.0"
flutter: ">=3.0.0" flutter: ">=3.3.0"

2
src/native_zxing.cpp

@ -23,7 +23,7 @@ extern "C"
FUNCTION_ATTRIBUTE FUNCTION_ATTRIBUTE
char const *version() char const *version()
{ {
return "1.4.0"; return "2.0.0";
} }
FUNCTION_ATTRIBUTE FUNCTION_ATTRIBUTE

Loading…
Cancel
Save