|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|