thai_id_card_numbers 1.5.1
thai_id_card_numbers: ^1.5.1 copied to clipboard
A comprehensive Flutter package for validating, formatting, and generating Thai ID card numbers. Includes smart input formatter, data extraction, and handy extensions.
1.5.1 #
- Rename
docsdirectory todocto follow Dart package layout conventions. - Improve CI/CD workflow stability with tag-based publishing.
1.5.0 #
- New Features:
- Added
ThaiIdStringExtensionfor easier usage (e.g.,'...'.isValidThaiId,'...'.thaiIdInfo). - Added
ThaiIdInfoclass for extracting metadata (type, office code, group, sequence) from an ID number. - Added
ThaiIdValidator.validate()for easy integration with Flutter'sTextFormField.
- Added
- Improvements:
- Enhanced
ThaiIdCardNumbersFormatterwith smarter cursor positioning logic for better UX.
- Enhanced
1.4.0 #
- Add helper APIs:
normalize,validateFormatted,checksum. - Enhance
generatewith options:firstDigit,formatted,pattern,delimiter. - Add
formatStrictfor pattern-validated formatting. - Improve
ThaiIdCardNumbersFormatterto handle paste/cleanup and prevent overflow. - Update example app and README; add recording guide under
docs/.
1.3.0 #
- Supports Web platform
- Upgrade to the new version of the dependencies.
1.2.1 #
- Upgrade to the new version of the dependencies.
1.2.0 #
- Add new features for Thai ID card number generating and formatting.