card_scannerr 0.0.3 copy "card_scannerr: ^0.0.3" to clipboard
card_scannerr: ^0.0.3 copied to clipboard

A Flutter package to scan credit/debit card details using the camera.

πŸ’³ Card Scanner Package for Flutter A Flutter package that allows developers to scan credit/debit cards using the device’s camera and extract card numbers and expiry dates via Google ML Kit OCR.

πŸš€ Features

πŸ“· Uses the device camera (via camera plugin) πŸ€– Optical Character Recognition (OCR) powered by google_ml_kit 🎯 Accurate extraction of: Card number (16 digits) Expiry date (MM/YY or MM/YYYY) πŸ”„ Automatically detects text and closes when valid data is found βœ… Works on both Android & iOS πŸ“¦ Installation

Add the following to your pubspec.yaml:

dependencies: card_scannerr: git: url: https://github.com/brightroots7/card_scannerr

Then run: flutter pub get πŸ› οΈ Usage

  1. Import the package import 'package:card_scannerr/card_scannerr.dart';
  2. Launch the scanner final cardDetails = await startCardScanner(context);

if (cardDetails != null) { print('Card Number: ${cardDetails.cardNumber}'); print('Expiry Date: ${cardDetails.expiryDate}'); }

βœ… Permissions Android (android/app/src/main/AndroidManifest.xml)

1
likes
150
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to scan credit/debit card details using the camera.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

camera, flutter, google_ml_kit, permission_handler

More

Packages that depend on card_scannerr