搜尋套件、儲存庫與 APP 分類

cnic_scanner 封面
套件詳情v0.0.5

cnic_scanner

一個讓您掃描身分證、ID 卡和其他各種卡片的套件。支援 Android 和 iOS,並且是空值安全的。

AndroidiOS
近 30 天下載
76
喜歡數
66
Pub 分數
140

安裝套件

flutter pub add cnic_scanner

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

cnic_scanner 套件讓使用者能利用 QR 碼或條碼技術掃描身分證、身分卡及其他類似文件。它支援 Android 與 iOS 平台,並完全支援 null 安全,確保現代 Dart 整合的穩健性。設計簡潔可靠,透過基於攝影機的掃描,為從身分證件中提取資料提供無縫體驗。適用於需要快速文件驗證的應用程式。

適用情境

  • 身分證驗證
  • 身分證掃描
  • 文件數位化
  • 用戶入門
  • 身份認證

主要特色

  • 跨平台支援(Android 與 iOS)
  • 空安全程式碼
  • 二維碼/條碼掃描
  • 簡單 API 結合
  • 即時掃描

適合對象

  • 政府應用
  • 銀行與金融
  • 電商平台
  • 移動身分驗證
  • 數位開戶系統

使用建議

  • 需要相機權限
  • 取決於設備攝像頭品質
  • 可能需要額外的驗證層
  • 限制為QR/條碼編碼的資料
  • 敏感資料的隱私考量

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

cnic_scanner

A Flutter package that let's you to scan your CNIC and ID cards and all types of other cards.

Installation

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';

Quick Start


// 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);                ​

CustomDialog


// 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);
              });                ​

CnicModel


// this class will return these parameters.

class CardModel {
     String _cnicNumber = "";
     String _cnicIssueDate = "";
     String _cnicHolderName = "";
     String _cnicExpiryDate = "";
     String _cnicHolderDateOfBirth = "";
}

ScreenShots

Cnic Screen Custom Dialog Scanned Cnic Data

Demo

Scanned from Gallery Scanned from Camera

Developers

Faiza Farooqui and Kamran Khan

License

MIT

所屬分類

依賴

依賴清單 5 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。