id_doc_kit 1.0.0 copy "id_doc_kit: ^1.0.0" to clipboard
id_doc_kit: ^1.0.0 copied to clipboard

Indian ID validation helpers for KYC and onboarding (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport + PIN/Phone/Email).

1.0.0 #

โœจ New Features #

  • Real-time Input Formatters: Introduced IdInputFormatters for all document types (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport, PIN, Phone, Email). These provide intelligent live formatting (like 1234 5678 9012 for Aadhaar) with cursor position preservation.
  • Advanced Metadata Extraction:
    • PAN validator now extracts holderType (Individual, Company, Trust, etc.) and holderTypeCode into the metadata map.
    • GSTIN and Driving License now expose stateName derived from state codes.
  • Smart ID Auto-Detection: Enhanced IdValidator.instance.validateAuto() to intelligently guess and validate the document type from a raw string.
  • GSTIN Checksum Validation: Added Luhn Mod 36 checksum verification for GSTIN, ensuring mathematically valid IDs.

๐Ÿ›  UI Enhancements #

  • Optimized IdTextField:
    • Automatically applies correct TextInputFormatter based on document type.
    • Integrated smart keyboard triggers: number for Aadhaar/Phone/PIN, and emailAddress for Email.
    • Intelligent textCapitalization for alphanumeric IDs like PAN/GSTIN/DL.
    • Disabled autocorrect and suggestions for all ID fields to prevent OS keyboard interference.
  • Improved IdField: The builder pattern widget now fully supports auto-formatting and intelligent cursor offset preservation.

๐Ÿงช Improvements & Documentation #

  • Robust Example App: Overhauled the example project with a modern UI, auto-detection demo, metadata visualization, and completion status tracking.
  • CI/CD Improvements: Optimized GitHub Actions workflows for web deployment and automated publishing.
  • Documentation: Comprehensive update to README.md including confidence score guides and metadata usage.

0.0.10 #

Added #

  • confidence score (0.0 โ€“ 1.0) for all validation results to indicate structural certainty
  • meta field in IdDocumentResult for 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 workflows for KYC and onboarding workflows
2
likes
150
points
118
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Indian ID validation helpers for KYC and onboarding (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport + PIN/Phone/Email).

Repository (GitHub)
View/report issues

Topics

#india #kyc #aadhaar #pan #gstin

License

MIT (license)

Dependencies

flutter

More

Packages that depend on id_doc_kit