v1.0.4card_scanner
適用於 Flutter 的快速、精確且安全的信用卡與借記卡掃描庫。
一個用於快速、準確且安全的信用卡與借記卡掃描的 Flutter 套件
以下為英文專案原文快照,最新內容請造訪 GitHub。

card_scanner is a flutter plugin for accurately and quickly scanning debit and credit cards.
Add this to your package's pubspec.yaml file:
dependencies:
card_scanner: <latest-version>
get the latest version number here
Just import the package and call scanCard:
import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard();
print(cardDetails);
Example Output:
Card Number = 5173949117389006
Expiry Date = 11/26
The above code opens the device camera, looks for a valid card and gets the required details and returns the CardDetails object.
If you wish to obtain the card holder name and card issuer, you can specify the options:
import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard(
scanOptions: CardScanOptions(
scanCardHolderName: true,
scanCardIssuer: true,
),
);
print(cardDetails);
Example Output :
Card Number = 5173949117389006
Expiry Date = 11/26
Card Issuer = mastercard
Card Holder Name = PAUL SAMUELSON
use_frameworks! line from under Podfile of your Flutter project.
You can find this Podfile under your_flutter_project/ios/Podfile依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗