flutter_scandit_plugin 1.0.0+1 copy "flutter_scandit_plugin: ^1.0.0+1" to clipboard
flutter_scandit_plugin: ^1.0.0+1 copied to clipboard

discontinued
outdated

Flutter Plugin for Scandit Barcode Scanning on Android and iOS

logo

Barcode Scanning on Smart Devices

Pub Package MIT License

Overview #

Scandit mobile computer vision software brings unrivaled scanning performance to any app on any smart device, turning it into a powerful data-capture tool.

Setup project #

iOS #

Add the following to the ios/Runner/Info.plist:

  • The key Privacy - Camera Usage Description and a usage description.

Or in text format add the key:

<key>NSCameraUsageDescription</key>
<string>Can I use the camera for scanning?</string>

Min target is iOS 9.0

Android #

Min SDK version should be 19 or later

minSdkVersion 19

Flutter #

First, we need to do add scandit to the dependencies of the pubspec.yaml

dependencies:
  scandit: any

Next, we need to install it:

# Dart
pub get

# Flutter
flutter packages get

Usage #

Add Scandit widget to the tree

import 'package:flutter_scandit/flutter_scandit.dart';

ScanditController _controller;

Scandit(scanned: (result){
          // handle scanned result here
        },
        onError: (e) {
          // handle errors here
        },
        onScanditCreated: (controller) => _controller = controller,
        licenseKey: INSERT YOUR KEY HERE);
}

After sucussfull scanning youy need manualy execute continue scanning if needed:

_controller.resumeBarcodeScanning();

Full Example #

Please check example folder and do not forget to add Scandit Key to main.dart

7
likes
0
pub points
29%
popularity

Publisher

verified publishermobilepeople.dev

Flutter Plugin for Scandit Barcode Scanning on Android and iOS

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_scandit_plugin