Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not complete example #168

Open
GrzesiekZbozien opened this issue Jan 17, 2025 · 0 comments
Open

Not complete example #168

GrzesiekZbozien opened this issue Jan 17, 2025 · 0 comments

Comments

@GrzesiekZbozien
Copy link

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.

Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant