barcode_scanner 5.1.0 barcode_scanner: ^5.1.0 copied to clipboard
Flutter plugin of the Scanbot Barcode Scanner SDK for Android and iOS. Provides functionality for scanning 1D and 2D barcodes, like EAN, UPC, QR code, Data Matrix, PDF 417, etc.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add barcode_scanner
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
barcode_scanner: ^5.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:barcode_scanner/classic_components.dart';
import 'package:barcode_scanner/rtu_ui_barcode.dart';
import 'package:barcode_scanner/rtu_ui_common.dart';
import 'package:barcode_scanner/rtu_ui_legacy_barcode.dart';
import 'package:barcode_scanner/scanbot_barcode_sdk.dart';
import 'package:barcode_scanner/scanbot_barcode_sdk_v2.dart';