You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also in my opinion example should also contains final Uint8List encodedBytes = Uint8List.fromList( imglib.encodeJpg(img), ); return Image.memory(encodedBytes);
That's because it will be understandable for flutter developers.
The text was updated successfully, but these errors were encountered:
I've just found out that when using flutter_zxing and returning QR as image you MUST use
numChannels: 4,
So whole example should be as code (line:280) writer_widget.dart:
final imglib.Image img = imglib.Image.fromBytes( width: width, height: height, bytes: result.data!.buffer, numChannels: 4, );
Also in my opinion example should also contains
final Uint8List encodedBytes = Uint8List.fromList( imglib.encodeJpg(img), ); return Image.memory(encodedBytes);
That's because it will be understandable for flutter developers.
The text was updated successfully, but these errors were encountered: