Search packages, repositories and app categories

GitHub repositoryshirne/zxing_widget

zxing_widget

A Barcode Generator Widget that can be embedded inside flutter. It uses zxing-dart for all platforms

zxing_widget project cover
Stars
0
Forks
0
Last push (UTC)
Sep 18, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

ZXing Widget(Dart)

pub package

A Barcode Generator Widget that can be embedded inside flutter. It uses zxing-dart for all platforms.

ZXing Dart pub package
ZXing Widget pub package
ZXing Scanner pub package

Features

  • ✅ QRCode
  • ✅ PDF417 code
  • ✅ DataMatrix code
  • ✅ AZTec code
  • ✅ OneDemension code
  • ✅ Paint callback
  • ✅ Customize color
  • ✅ to image

Preview

Code Generator Preview

Getting started

flutter pub add zxing_widget

Usage

See /example folder.

Render a qrcode

BarcodeWidget(
    QrcodePainter(
        'qrcode data',
        errorCorrectionLevel: ErrorCorrectionLevel.H,
        foregroundColor: Colors.blue,
    ),
    size: const Size(200, 200),
),

Generate an image

import 'dart:ui' as ui;

final ui.Image image = QrcodePainter(
        'qrcode data',
        errorCorrectionLevel: ErrorCorrectionLevel.H,
        foregroundColor: Colors.blue,
    ).toImage(const Size(200, 200));

// binary png data
final binData = await image.toByteData(format: ui.ImageByteFormat.png);

Additional information

This package depends on zxing_lib witch is a pure dart port of ZXing.

shirne GitHub avatar
GitHub author

shirne ↗

Flutter/PHP/Java/.NET/Vue

语辰软件中国广东惠州Official website ↗
LanguagesC++CMakeDartHTMLCSwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 4 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗