barcode_scanner 1.2.0-beta2 barcode_scanner: ^1.2.0-beta2 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: ^1.2.0-beta2
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/barcode_parsers/aamva.dart';
import 'package:barcode_scanner/barcode_parsers/aamva.g.dart';
import 'package:barcode_scanner/barcode_parsers/barcode_scanner.dart';
import 'package:barcode_scanner/barcode_parsers/boarding_pass.dart';
import 'package:barcode_scanner/barcode_parsers/boarding_pass.g.dart';
import 'package:barcode_scanner/barcode_parsers/de_medical_plan.dart';
import 'package:barcode_scanner/barcode_parsers/de_medical_plan.g.dart';
import 'package:barcode_scanner/barcode_parsers/disability_certificate.dart';
import 'package:barcode_scanner/barcode_parsers/disability_certificate.g.dart';
import 'package:barcode_scanner/barcode_parsers/id_card_pdf_417.dart';
import 'package:barcode_scanner/barcode_parsers/id_card_pdf_417.g.dart';
import 'package:barcode_scanner/barcode_parsers/sepa.dart';
import 'package:barcode_scanner/barcode_parsers/sepa.g.dart';
import 'package:barcode_scanner/barcode_parsers/vcard.dart';
import 'package:barcode_scanner/barcode_parsers/vcard.g.dart';
import 'package:barcode_scanner/barcode_scanning_data.dart';
import 'package:barcode_scanner/barcode_scanning_data.g.dart';
import 'package:barcode_scanner/common_data.dart';
import 'package:barcode_scanner/license.dart';
import 'package:barcode_scanner/scanbot_barcode_sdk.dart';
import 'package:barcode_scanner/scanbot_sdk_models.dart';
import 'package:barcode_scanner/scanbot_sdk_models.g.dart';
import 'package:barcode_scanner/sdk_utils.dart';