qr_image 1.0.0 copy "qr_image: ^1.0.0" to clipboard
qr_image: ^1.0.0 copied to clipboard

Make generating QR code images with logos easier by using popular image processing library and QR code library.

example/qr_image_example.dart

import 'package:image/image.dart';
import 'package:qr_image/qr_image.dart';
import "dart:io";

void main() {
  var img1 = QRImage(
    "https://google.com/",
    backgroundColor: ColorUint8.rgb(255, 255, 255),
    size: 300,
  ).generate();
  File("image/pic1.png").writeAsBytesSync(encodePng(img1));

  var img2 = QRImage(
    "https://google.com/",
    backgroundColor: ColorUint8.rgb(255, 255, 255),
    size: 300,
    radius: 10,
    logo: decodePng(File("image/logo.png").readAsBytesSync()),
    logoRound: true,
  ).generate();
  File("image/pic2.png").writeAsBytesSync(encodePng(img2));

  var img3 = QRImage(
    "https://google.com/",
    backgroundColor: ColorUint8.rgb(255, 255, 255),
    size: 300,
    radius: 10,
    logo: decodePng(File("image/logo.png").readAsBytesSync()),
    logoRound: true,
    typeNumber: 5,
  ).generate();
  File("image/pic3.png").writeAsBytesSync(encodePng(img3));
}
7
likes
150
points
408
downloads

Publisher

verified publisherleamlidara.dev

Weekly Downloads

Make generating QR code images with logos easier by using popular image processing library and QR code library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

image, qr

More

Packages that depend on qr_image