Skip to content
pubscout

pretty_qr_code

3.6.0, released 10 months ago by an unverified publisher

A highly customizable Flutter widget for rendering QR codes.

WASM-ready
$ flutter pub add pretty_qr_code
Source repository

What it does

Renders QR codes in Flutter with support for custom shapes, gradients, embedded images, themes, and exporting to images.

AI-written summary of version 3.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render customizable QR codes inside a Flutter app UI.
  • You want to embed logos or images inside the QR code.
  • You need to export generated QR codes as images for sharing.

Skip it when

  • You need to scan QR codes rather than generate them.
  • You are building a backend service that doesn't use Flutter widgets.

Strengths

  • Highly customizable shapes, patterns, and themes.
  • Supports gradient filling and embedded images with custom clippers.
  • Ability to export QR codes as images or byte arrays.

Weaknesses

  • Does not support scanning QR codes (generation only).
  • Vector image export is not yet implemented (planned for future release).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Not documented

PrettyQrView.data(
  data: 'lorem ipsum dolor sit amet',
  decoration: const PrettyQrDecoration(
    image: PrettyQrDecorationImage(
      image: AssetImage('images/flutter.png'),
    ),
    quietZone: PrettyQrQuietZone.standart,
  ),
)

Alternatives

Packages that do the same job and could replace pretty_qr_code.

  • qr_flutter

    A popular alternative for rendering QR codes in Flutter if you prefer its specific API or styling features.

Works with

Packages commonly used together with pretty_qr_code: ones it builds on, ones built on it, and its own family.