id_doc_kit 0.0.1
id_doc_kit: ^0.0.1 copied to clipboard
A structured toolkit for validating Indian ID documents (Aadhaar, PAN, Driving License) with rich result models and ready-to-use Flutter form field widgets.
id_doc_kit #
A structured toolkit for validating Indian ID documents in Flutter apps.
Supports:
- ✅ Aadhaar (with Verhoeff checksum)
- ✅ PAN
- ✅ Driving License (basic format validation)
- ✅ Rich result models (not just
bool) - ✅ Flutter form field widget with built-in validation
Perfect for onboarding / KYC flows in fintech and identity apps.
✨ Features #
-
Structured results
GetIdDocumentResultwith:isValidnormalizedValueerrorCode(e.g.INVALID_FORMAT,INVALID_CHECKSUM)errorMessage(user-friendly)
-
Multiple document types
IdDocumentType.aadhaarIdDocumentType.panIdDocumentType.drivingLicense
-
Unified validator API
Use a singleIdValidator.instancefor all types, or callvalidateAutoto try auto-detection. -
Flutter widgets
IdTextField→ ATextFormFieldwrapper with built-in validation.
🧩 Installation #
Add this to your pubspec.yaml:
dependencies:
id_doc_kit: ^0.0.1