qr_svg_generator

Last updated:

0 purchases

qr_svg_generator Image
qr_svg_generator Images
Add to Cart

Description:

qr svg generator

A library for converting QR codes to SVG vector graphic code
Features #

Generate a SVG vector graphic code from a QR code (provided by the qr package).
Optionally set colorA and colorB for a gradient color.

Getting started #
To start, import the dependency in your code:
import 'package:qr_svg_generator/qr_svg_generator.dart';
copied to clipboard
To generate a SVG vector graphic code call generateQrSvgImage:
final qrSvgImageCode = generateQrSvgImage(
qrCode: myQrCode,
imageSizeInPx: 500,
title: "MySvg",
colorA: Colors.blue,
colorB: Colors.pink);
copied to clipboard
Now you can use the toString() method of your qrSvgImage instance to retrieve your SVG code for further use (e.g. safe to a .svg file):
saveTextFile(qrSvgImageCode.toString(), "mySvgFile.svg");
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.