id_doc_kit 0.0.4 copy "id_doc_kit: ^0.0.4" to clipboard
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

    • isValid
    • normalizedValue
    • errorCode (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 only
    • IdTextField → ready-to-use widget
    • IdField → 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
2
likes
0
points
194
downloads

Publisher

unverified uploader

Weekly Downloads

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 widgets. Ideal for KYC, onboarding, and fintech apps.

Repository (GitHub)
View/report issues

Topics

#validation #india #kyc #aadhaar #gstin

License

unknown (license)

Dependencies

flutter

More

Packages that depend on id_doc_kit