qr_code_tools 0.1.0 copy "qr_code_tools: ^0.1.0" to clipboard
qr_code_tools: ^0.1.0 copied to clipboard

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

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.

21
likes
140
pub points
89%
popularity

Publisher

verified publisheraifeii.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on qr_code_tools