qr_flutter
4.1.0, released 4 years ago by theyakka.com
Flutter widget for rendering QR codes with customizable size, colors, and optional embedded images.
What it does
Provides a widget (QrImageView) that generates QR code graphics on the fly using the Dart QR library. It supports version auto‑detection, error correction levels, styling of eyes and data modules, and can overlay an image in the centre. No network connection is required.
AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display QR codes inside a Flutter UI
- You want custom styling (colors, padding, embedded logo) without external services
Skip it when
- You need to scan QR codes (use a scanner package)
- You require server‑side QR generation or batch image files
Strengths
- Fast, pure‑Dart rendering
- Fully customizable appearance
- Null‑safe and works on all Flutter platforms
Weaknesses
- Only generates QR codes, no scanning capability
- Limited to static data strings
- No built‑in caching or image export beyond raw data
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:qr_flutter/qr_flutter.dart';
QrImageView(
data: 'https://example.com',
version: QrVersions.auto,
size: 200.0,
);Alternatives
Packages that do the same job and could replace qr_flutter.
- pretty_qr_code
Provides similar QR code rendering with additional styling options and can be a drop‑in replacement for simple QR display needs
68Compare
Works with
Packages commonly used together with qr_flutter: ones it builds on, ones built on it, and its own family.