Skip to content
pubscout

flutter_scankit

2.0.6, released 2 years ago by an unverified publisher

A Flutter plugin for HUAWEI ScanKit providing barcode and QR code scanning.

WASM-ready
$ flutter pub add flutter_scankit
Source repository

What it does

Provides a Flutter interface for HUAWEI ScanKit to detect, magnify, and recognize major 1D and 2D barcode formats using the camera or local images. It also supports encoding strings into barcode images.

AI-written summary of version 2.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to integrate HUAWEI ScanKit for fast and reliable barcode and QR code scanning on Android and iOS.
  • You need custom scanning views or support for recognizing barcodes from local photo libraries and camera streams.

Skip it when

  • You want a pure Dart barcode scanner without depending on native HMS/ScanKit SDK dependencies.
  • You are building apps that strictly avoid Huawei-related SDKs.

Strengths

  • High scanning success rate under difficult conditions such as dim lighting, reflections, or dirty surfaces.
  • Supports multiple customization modes including full custom views and decoding via camera streams.
  • Supports generating barcode and QR code images.

Weaknesses

  • Requires platform-specific configuration and permission setup (especially for iOS).
  • Relies on Huawei's native scanning SDK libraries.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires adding camera and photo library usage descriptions to iOS Info.plist, and permission configuration.

ScanKit scanKit;

@override
void initState() {
  super.initState();
  scanKit = ScanKit();
  scanKit!.onResult.listen((val) {
    debugPrint("scanning result:${val.originalValue}  scanType:${val.scanType}");
  });
}

Future<void> startScan() async {
  try {
    await scanKit?.startScan();
  } on PlatformException {}
}

Alternatives

Packages that do the same job and could replace flutter_scankit.