Search packages, repositories and app categories

Package detailsv0.2.0

qr_code_tools

The Flutter plugin for iOS and Android to decoding QR codes.

AndroidiOS
30-day downloads
3.4K
Likes
30
Pub points
140

Install package

flutter pub add qr_code_tools

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

qr_code_tools is a Flutter plugin designed for iOS and Android that enables QR code decoding within mobile applications. It provides a straightforward interface to scan and extract data from QR codes using the device's camera. The plugin is lightweight and optimized for performance, making it suitable for apps requiring quick and reliable QR code recognition. It supports both real-time scanning and image-based decoding, ensuring flexibility across different use cases. Built with simplicity in mind, it integrates seamlessly into Flutter projects.

Use cases

  • Mobile inventory tracking
  • Event ticket scanning
  • Contact sharing via QR
  • Digital payment initiation
  • Product information lookup

Key features

  • Real-time QR scanning
  • Image-based QR decoding
  • Cross-platform support (iOS & Android)
  • Simple API integration
  • Lightweight and fast performance

Suitable for

  • Retail and e-commerce apps
  • Event management tools
  • Logistics and asset tracking
  • Customer engagement platforms
  • Mobile payment systems

Considerations

  • Requires camera permissions on both platforms
  • May need additional UI for camera preview
  • Performance depends on device camera quality
  • Limited to QR code decoding (no generation)
  • No built-in error handling for malformed codes

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

QR Code Tools

Build Status pub package

The Flutter plugin for iOS and Android to decoding QR codes.

Installation

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

iOS

Add one rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Photo Library Usage Description and a usage description.

Or in text format add the key:

<key>NSPhotoLibraryUsageDescription</key>
<string>Can I use the photo library please?</string>
Android

Nothing to do

Example

import 'package:qr_code_tools/qr_code_tools.dart';

String _data;

/// decode from local file
Future decode(String file) async {
  String data = await QrCodeToolsPlugin.decodeFrom(file);
  setState(() {
    _data = data;
  });
}

For a more elaborate usage example see here.

Categories

Source repository

Projects using this package

No data available yet.