搜索插件、代码仓与 APP 分类

插件详情v4.0.0

qr_bar_code

简单快速的二维码和条形码生成器和扫描器,适用于智能手机。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4590
喜欢数
29
Pub 分数
160

安装插件

flutter pub add qr_bar_code

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个轻量级的Flutter包,使用智能手机摄像头生成和扫描二维码和条形码。它提供了一个简单的API来创建二维码和条形码图像,并支持在Android、iOS、Web、macOS、Windows和Linux上实时扫描。非常适合需要快速数据编码或解码的应用程序,例如票务、库存跟踪或联系人共享。该包速度快,并能与原生相机功能无缝集成。

适合场景

  • 生成用于数字邀请的二维码
  • 在零售应用中扫描条形码
  • 通过二维码创建可共享链接
  • 使用条形码扫描跟踪库存
  • 通过二维码启用联系人交换
  • 支持移动支付系统

主要特点

  • 实时二维码和条形码扫描
  • 跨平台支持(Android、iOS、Web、macOS、Windows、Linux)
  • 用于代码生成的简单API
  • 快速渲染和检测
  • 相机集成,设置简单
  • 轻量且易于实现

适合对象

  • 需要二维码/条形码功能的移动应用
  • 库存和资产管理工具
  • 事件票务系统
  • 无接触数据共享
  • 零售和销售点应用程序
  • 带有互动元素的教育类应用程序

使用建议

  • 在移动平台上需要相机权限
  • Web 支持可能因浏览器而异,相机访问权限有限
  • 性能在旧设备上有所不同
  • 可能需要额外的配置才能进行网络部署
  • 不适用于需要高安全性的应用,除非额外加密
  • 扫描UI的自定义选项有限

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

qr_bar_code

Simple and fast QR code and Barcode generator and scanner with smartphones.

Using

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile and web development, and a full API reference.

Installation

First, add qr_bar_code as a dependency in your pubspec.yaml file.

In your flutter project add the dependency:

dependencies:
  ...
  qr_bar_code:

For help getting started with Flutter, view the online documentation.

Example

Please follow this example here.

QR code (Method 1)
Code(data: "https://datadirr.com", codeType: CodeType.qrCode())
QR code (Method 2)
QRCode(data: "https://datadirr.com")

Outro

Credits

Thanks to Luke Freeman for his awesome qr.flutter library. Thanks to Kevin Moore for his awesome qr.dart library. It's the core of this library.

For author/contributor information, see the AUTHORS file.

所属分类

依赖

依赖清单 2 项

  • plugin_platform_interface^2.1.8
  • web^1.1.1

源码仓库

使用此插件的项目

暂无相关数据。