Skip to content
pubscout

card_scanner

1.0.4, released 7 months ago by an unverified publisher

Flutter plugin to scan credit and debit cards offline using Google's ML models.

WASM-readyCopyleft licenseUnverified publisher
$ flutter pub add card_scanner
Source repository

What it does

Opens the device camera to scan credit and debit cards completely offline. Extracts card numbers, expiry dates, card holder names, and card issuers using Google's machine learning models.

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

Use it when

  • You need to allow users to scan credit or debit cards using the camera.
  • Scanning must be done completely offline for security purposes.

Skip it when

  • You require payment processing capabilities rather than just card data scanning.
  • You need custom UI overlays that the plugin does not support.

Strengths

  • Fully offline scanning for security
  • Can scan expiry dates, card holder names, and card issuers alongside card numbers
  • Built-in card checksum validation

Weaknesses

  • Requires modifying iOS Podfile (commenting out use_frameworks!)
  • GPL-3.0 license may restrict usage in proprietary projects

Setup

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

For iOS, set the minimum target to >= 15.0 and comment out the use_frameworks! line in the Podfile.

import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard();
print(cardDetails);

Alternatives

Packages that do the same job and could replace card_scanner.