qr_image_generator 0.2.4 copy "qr_image_generator: ^0.2.4" to clipboard
qr_image_generator: ^0.2.4 copied to clipboard

Generate and save QR Code Image. Just provide path and file name.

Generate and save QR Code Image.


Basic Usage #


    final generator = QRGenerator();

    await generator.generate(
      data: 'Hello World!',
      filePath: '$outputDir/hello.png',
    );

Full Usage #


  Future saveQRImage() async {
    String? outputDir = await FilePicker.platform.getDirectoryPath();
    if (outputDir == null) {
      return;
    }

    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.


TODO #

  • ❌ Write Documentation
  • ❌ Add Logo support
  • ❌ Add Tests
14
likes
0
pub points
82%
popularity

Publisher

verified publishermanthankhandale.com

Generate and save QR Code Image. Just provide path and file name.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

image, path_provider, qr

More

Packages that depend on qr_image_generator