v0.0.5cnic_scanner
CNICやIDカード、その他のさまざまなカードをスキャンできるパッケージです。AndroidおよびiOSをサポートしており、null安全です。
66いいね 7630日間ダウンロード140Pub ポイント
AndroidiOS
Faiza-Farooqui/cnic_scanner open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter package that let's you to scan your CNIC and ID cards and all types of other cards.
Add following dependency in pubspec.yaml file. And add this import to your file.
cnic_scanner: latest version
image_picker: latest version
import 'package:cnic_scanner/cnic_scanner.dart';
// create a obj of CnicModel
CnicModel _cnicModel = CnicModel();
// then call this method fron package, our package needs you to pass ImageSource as an argument
scanImage(imageSource: imageSource) from CnicScanner class
await CnicScanner().scanImage(imageSource: imageSource);
// I have created a custom dialog and passing ImageSource here in ths way. You can furture check it in example
CustomDialogBox(onCameraBTNPressed: () {
scanCnic(ImageSource.camera);
}, onGalleryBTNPressed: () {
scanCnic(ImageSource.gallery);
});
// this class will return these parameters.
class CardModel {
String _cnicNumber = "";
String _cnicIssueDate = "";
String _cnicHolderName = "";
String _cnicExpiryDate = "";
String _cnicHolderDateOfBirth = "";
}
| Cnic Screen | Custom Dialog | Scanned Cnic Data |
|---|---|---|
![]() |
![]() |
![]() |
| Scanned from Gallery | Scanned from Camera |
|---|---|
![]() |
![]() |
Faiza Farooqui and Kamran Khan
依存関係一覧 7 件
{"sdk":"flutter"}^0.13.0^0.8.3+2^8.1.4+2^0.17.0^8.2.1{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗