Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

sportalliance/qr_code_tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 42.7%
  • Kotlin 25.6%
  • Swift 17.5%
  • Ruby 7.9%
  • Objective-C 6.3%