FLUTTER ECOSYSTEM

Faiza-Farooqui/cnic_scanner

Faiza-Farooqui/cnic_scanner open-source repository details.

cnic_scanner 프로젝트 이미지
Stars
13
Forks
11
최근 푸시(UTC)
2023. 4. 5.
프로젝트 상태
활성
Faiza Farooqui GitHub avatar
GITHUB User

Faiza Farooqui ↗

Mobile Application Developer

Stash Technologies Pvt LtdIslamabad
언어DartObjective-CJava

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 7 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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
https://user-images.githubusercontent.com/36657067/129031524-4a83c099-cebc-495c-921b-319a49461a7f.jpeg?raw=true https://user-images.githubusercontent.com/36657067/129031276-e42046a7-87cb-452b-8a8f-183e9b17c9a3.jpeg?raw=true https://user-images.githubusercontent.com/36657067/129034069-93144d80-253e-4d55-94bb-8ab5f3dcfc6b.jpeg?raw=true

Demo

Scanned from Gallery Scanned from Camera
https://user-images.githubusercontent.com/36657067/129146418-928ccbbf-152c-4c7d-8b8f-89c386dd4d1a.gif?raw=true https://user-images.githubusercontent.com/36657067/129147338-58fc55f0-bd9b-477c-9187-09b3d7ec6c82.gif?raw=true

Developers

Faiza Farooqui and Kamran Khan

License

MIT