I cannot figure out on how to convert a generated qr code by the use of QrImageView into a image file type that can be saved in the database
This is my code for generating a qr code:
Widget buildGenerateQrCode(){
String qrData = '$docu_title, $docu_type, $docu_sender, $docu_recipient, $_selectedFile';
return QrImageView(
data: qrData,
version: QrVersions.auto,
size: 200.0,
);
}
Use
QrPainterclass of theqr_flutterpackage.You can do something with the image data, send it to database or save on disk.
Source: https://github.com/theyakka/qr.flutter/issues/115