Generate and save QR Code Image.
final generator = QRGenerator();
await generator.generate(
data: 'Hello World!',
filePath: '$outputDir/hello.png',
);
Future saveQRImage() async {
final generator = QRGenerator();
await generator.generate(
data: 'Hello World!',
filePath: '$outputDir/hello.png',
scale: 10,
foregroundColor: Colors.yellow,
backgroundColor: Colors.blue,
errorCorrectionLevel: ErrorCorrectionLevel.medium,
qrVersion: 4,
);
}
The Image will get saved to the provided filePath
.
- Add Transperency Support
- Write Documentation
- Add Image in Qr Code
- Add Tests