uz_kit 0.2.0
uz_kit: ^0.2.0 copied to clipboard
Complete Flutter & Dart utility kit for Uzbekistan. Bank BIN lookup, Uzcard/Humo cards, payment deep links, license plates, mobile operators, money to words, and PINFL/Passports.
Changelog #
All notable changes to the uz_kit package will be documented in this file.
0.2.0 - 2026-11-10 #
Added #
- 💳 Bank BIN Lookup (
UzBankUtils&UzBank):- Detect commercial bank by 6-8 digit BIN prefix (Kapitalbank, TBC, Anorbank, Ipak Yo'li, SQB, NBU, Hamkorbank, Uzum Bank, etc.).
- Access bank official name, short name, brand color, website, and code.
- Integration with
UzCardUtils.detectBank(cardNumber).
- 🔗 Payment Deep Links & Checkouts (
UzPayHelper):- Generate checkout web URLs and mobile app deep links for Click (
clickuz://), Payme (payme://), and Uzum Pay (uzumbank://). - Automatic Base64 encoding and so'm to tiyin conversion for Payme.
- Generate checkout web URLs and mobile app deep links for Click (
- 🚗 Vehicle License Plates (
UzCarPlateUtils&UzCarPlateInputFormatter):- Support for individual (
01 A 777 AA) and legal entity (01 777 AAA) plates. - Automatic region identification across all 14 Uzbekistan administrative regions.
- Real-time
TextInputFormatterwith automatic spacing and Cyrillic lookalike autocorrection.
- Support for individual (
- 🆔 PINFL Metadata Extraction (
UzPinflValidator.parse):- Extract birth date (
DateTime), gender (UzPinflGender.male/UzPinflGender.female), and age in full completed years from 14-digit JShShIR.
- Extract birth date (
- 📍 Administrative Regions & Districts (
UzRegions):- Complete database of 14 regions and 200+ districts/cities of Uzbekistan.
- Cascade selection helpers (
getDistricts(regionId)), region codes, and bilingual search.
- 🎨 Fintech Credit Card UI Widget (
UzCreditCardWidget):- Interactive, 3D flippable credit card with realistic metallic EMV chip, NFC wave icon, magnetic back stripe, and CVV signature strip (hidden for Uzcard/Humo).
- Authentic branding for Visa, Mastercard, Uzcard, and Humo.
- Automatic bank and card type color gradient adaptation.
- 📷 Card Scanner & OCR (
UzCardScanner&showUzCardScanner):- Extract 16-digit PAN, expiry date (MM/YY), 3-digit CVV (for Visa/Mastercard), and cardholder name.
- Interactive laser viewfinder dialog with manual fallback and 1-tap testing presets.
- 📡 NFC EMV Parser (
UzEmvNfcParser&UzNfcCardData):- Parse Track 2 Equivalent Data (Tag 57) and raw TLV APDU bytes from contactless chips (Humo, Uzcard NFC, Visa, Mastercard).
- Comprehensive test coverage (49 tests) and updated bilingual documentation.
0.1.2 - 2026-11-06 #
Fixed #
- README and README_UZ examples now use the real API. Earlier examples called
methods that do not exist (
getCardType,formatPhoneNumber,getOperator,UzMoneyWords.toWords,UzIdentityUtils.*,UzPhoneNumberFormatter), so copy-pasted snippets did not compile. - PINFL example now uses a number that passes the checksum.
- Install snippet points to the current version.
Added #
test/readme_examples_test.dart: every output shown in the READMEs is asserted, including PINFL, Luhn and all seven input formatters, which had no tests before.- Input formatter reference table and pub.dev screenshot.
0.1.1 - 2026-09-02 #
Added #
- Add Uzbek documentation (
README_UZ.md) and language switcher buttons. - Improve documentation and examples.
0.1.0 - 2026-09-02 #
Added #
- 💳 Card Utilities:
- Auto-detection for
Uzcard,Humo,Visa,Mastercard,UnionPay, andMir. UzCardNumberFormatterfor automaticxxxx xxxx xxxx xxxxspacing in TextFields.UzCardExpiryFormatterforMM/YYinputs with past-date verification.- Card masking utility (e.g.,
8600 **** **** 1234). - Luhn checksum (Mod 10) algorithm validation.
- Auto-detection for
- 📞 Phone & Operator Utilities:
- Auto-detection for Uzbekistan mobile operators (
Beeline,Ucell,Mobiuz,Uztelecom,Humans,Perfectum). UzPhoneInputFormatterfor+998 (xx) xxx-xx-xxformat.- Normalization to standard 12-digit format
998901234567.
- Auto-detection for Uzbekistan mobile operators (
- 💰 Money & Currency:
UzMoneyToWords: Converts numerical amounts up to trillions into written words in Uzbek Latin and Cyrillic with tiyin support.UzMoneyFormatterandUzMoneyInputFormatterfor formatting currency with space separators.
- 🆔 Identity & Validation:
UzPinflValidatorandUzPinflInputFormatterfor 14-digit JShShIR with official checksum validation.UzPassportUtilsandUzPassportInputFormatterforAA 1234567series formatting and validation.UzTinValidatorfor 9-digit STIR (INN) validation.
- 📱 Example Application:
- Full interactive demo showcasing all features with Material 3 light and dark themes.
