id_doc_kit 0.0.10
id_doc_kit: ^0.0.10 copied to clipboard
Indian ID validation helpers for KYC and onboarding (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport + PIN/Phone/Email).
0.0.10 #
Added #
confidencescore (0.0 – 1.0) for all validation results to indicate structural certaintymetafield inIdDocumentResultfor parsed and derived document details- Risk-aware Driving License validation with strict and fallback modes
- Structured metadata for Driving License (state, RTO, year, serial, legacy/fallback flags)
Improved #
- Consistent normalization across all validators
- Transparency in Driving License validation outcomes
- Enterprise-friendly validation outputs for KYC and onboarding workflows
Notes #
- These changes are fully backward compatible
- Existing integrations continue to work without modification
- Confidence represents structural validation only and does not imply backend verification
0.0.8 DL Improvements #
Added #
IdFormatter— UI-friendly formatting helpers for PAN, Aadhaar, GSTIN, Driving License, Voter ID, Passport, PIN, Phone, Email.autoFormatoption (defaulttrue) forIdTextFieldandIdFieldto format user input live.idFormFieldValidator(..., autoFormat: true)option to format before validation.
Changed #
IdTextField/IdFieldupdated to apply formatting + validation consistently (UI shows formatted text and friendly messages).- README updated with formatter and autoFormat usage notes.
- Tests added for formatter behavior and key DL cases.
Notes #
autoFormatis opt-out for developers who prefer raw input.- For server-side validation use
DrivingLicenseStateValidator.validateor callIdFormatter.format(...)/IdValidator.validate(...)on the server normalized data.
0.0.6 KYC Essentials #
Added #
- PIN code validator (India)
- Phone number validator (India)
- Email validator
- Tests for new validators
- README updated with examples and demo link
0.0.4 #
✨ New Features #
- Added Voter ID (EPIC) validation
- Supports both 2–letter + 7 digits (e.g. AB1234567)
- And 3–letter + 7 digits (e.g. ABC1234567)
- Added Indian Passport validation
- Supports common format: 1 letter + 7 digits (e.g. A1234567)
🛠 Enhancements #
- Updated
IdDocumentTypeandIdValidatorto support new document types. - Improved README with updated examples and supported document list.
🧪 Testing #
- Added new test suites for:
- Voter ID validator
- Passport validator
0.0.3 #
✨ New Features #
- Added GSTIN validation (basic structure + state code check).
- Introduced a flexible ID field system:
idFormFieldValidatorfor customTextFormField.- Improved
IdTextFieldwith safe validation callbacks and better controller handling. - New
IdFieldbuilder for fully custom UI.
🧪 Testing & Quality #
- Added unit tests for:
- Aadhaar
- PAN
- Driving License
- GSTIN
- Improved error handling coverage in tests to match real validator behaviour.
🛠 Improvements #
- Refactored internal widget structure (single
id_fields.dartentrypoint). - Removed duplicate widget/typedef definitions.
- Fixed
setState()-during-build issue inIdTextField. - More consistent error codes and validation flow.
📱 Example App #
- Updated example app to demonstrate:
IdTextFieldwith PAN.TextFormField+idFormFieldValidatorfor GSTIN.IdFieldwith custom Aadhaar UI and live validation feedback.