How to export the generated QR #124
-
In the README it says: Export to image data to save to file or use in memory I want to export the image to memory in order to be able to share it, in the README it doesn't say how to do it. How can I export the generated QR? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
i think tis artical can help |
Beta Was this translation helpful? Give feedback.
-
Is a premium article, is there an unlocked or better version of it? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much!
…On Mon, Dec 16, 2024 at 2:26 AM frieder-audriga ***@***.***> wrote:
Because the article is not freely available, and I was not able to find
this documented elsewhere: You need to create a QrPainter object and call
.toImageData on it.
The one liner I will be using to get Uint8List is as follows:
Uint8List? qrBytes = (await QrPainter(data: data, version: QrVersions.auto).toImageData(2048))?.buffer.asUint8List();
—
Reply to this email directly, view it on GitHub
<#124 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVWSSSR5SG3MWOQIL73AWZT2F2MF3AVCNFSM6AAAAABTAYCNL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJXHA3TENY>
.
You are receiving this because you commented.Message ID: <theyakka/qr.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
i think tis artical can help
https://medium.com/codex/exporting-qr-codes-in-flutter-dd30220fcba4