id_doc_kit 0.0.4
id_doc_kit: ^0.0.4 copied to clipboard
A lightweight, production-ready toolkit for validating Indian ID documents (Aadhaar, PAN, Driving License, GSTIN, Voter ID, Passport) with structured result models and ready-to-use Flutter form field [...]
id_doc_kit #
A lightweight, production-ready Flutter/Dart toolkit for validating
Indian ID documents with structured results and flexible form field support.
Perfect for KYC, onboarding, fintech, business verification, and identity apps.
✅ Supported Documents #
- ✅ Aadhaar (with Verhoeff checksum)
- ✅ PAN
- ✅ Driving License (basic format)
- ✅ GSTIN (basic structure + state code)
- ✅ Voter ID (EPIC) — 2–3 letters + 7 digits
- ✅ Passport (Indian) — 1 letter + 7 digits
This makes id_doc_kit one of the most complete, developer-friendly Indian document validation packages on pub.dev.
✨ Key Features #
-
✅ Structured validation results
isValidnormalizedValueerrorCode(e.g.INVALID_FORMAT,INVALID_LENGTH,INVALID_CHECKSUM)errorMessage(human-friendly)
-
✅ Single unified validator API
IdValidator.instance.validate(type: ..., value: ...)IdValidator.instance.validateAuto(value)(optional)
-
✅ Three flexible ways to handle input fields
idFormFieldValidator→ logic onlyIdTextField→ ready-to-use widgetIdField→ fully custom UI via builder
-
🔄 Consistent behavior across Aadhaar, PAN, DL, GSTIN, Voter ID, Passport
-
🚫 No external APIs (offline, fast, privacy-safe)
-
🌐 Works on Android, iOS, Web
-
🧪 Well-tested & null-safe
📦 Installation #
Add this to your pubspec.yaml:
dependencies:
id_doc_kit: ^0.0.4