Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hkk97/hkid_validator
HKID Validator Library, support HKID Validation and generated eight or nine digits validated HKID.
https://github.com/hkk97/hkid_validator
dart flutter flutter-web-app hkid-generat hkid-generator hkid-validator hkid-ver hkid-verif progressive-web-app pwa single- spa
Last synced: about 2 months ago
JSON representation
HKID Validator Library, support HKID Validation and generated eight or nine digits validated HKID.
- Host: GitHub
- URL: https://github.com/hkk97/hkid_validator
- Owner: hkk97
- License: mit
- Created: 2022-08-29T16:26:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T12:55:08.000Z (about 2 years ago)
- Last Synced: 2024-04-24T06:01:25.610Z (9 months ago)
- Topics: dart, flutter, flutter-web-app, hkid-generat, hkid-generator, hkid-validator, hkid-ver, hkid-verif, progressive-web-app, pwa, single-, spa
- Language: Dart
- Homepage: https://hkk97.github.io/hkid_validator/
- Size: 21.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# HKID Validator Library
[![DockerCICD](https://github.com/hkk97/hkid_validator/actions/workflows/docker-cicd.yml/badge.svg)](https://github.com/hkk97/hkid_validator/actions/workflows/docker-cicd.yml)
[![ForkCICD](https://github.com/hkk97/hkid_validator/actions/workflows/fork-cicd.yml/badge.svg)](https://github.com/hkk97/hkid_validator/actions/workflows/fork-cicd.yml)
[![GitHubPageCICD](https://github.com/hkk97/hkid_validator/actions/workflows/github-page-cicd.yml/badge.svg)](https://github.com/hkk97/hkid_validator/actions/workflows/github-page-cicd.yml)
[![GithubPacakgesCICD](https://github.com/hkk97/hkid_validator/actions/workflows/github-packages-cicd.yml/badge.svg)](https://github.com/hkk97/hkid_validator/actions/workflows/github-packages-cicd.yml)
[![pages-build-deployment](https://github.com/hkk97/hkid_validator/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/hkk97/hkid_validator/actions/workflows/pages/pages-build-deployment)
[![CodeFactor](https://www.codefactor.io/repository/github/hkk97/hkid_validator/badge)](https://www.codefactor.io/repository/github/hkk97/hkid_validator)HKID Validator Library, support HKID Validation and generated eight or nine digits validated HKID.
| | Android | iOS | Linux | macOS | Web | Windows |
|-------------|---------|------|-------|--------|-----|-------------|
| **Support** | Any | Any | Any | Any | Any | Any |## Usage
To use this plugin, add `hkid_validator` as a [dependency in your pubspec.yaml file].### Examples
Here are small examples that show you how to use the HKIDValidator.#### Validate the HKID
```dart
// Obtain HKIDValidator.
final hkidValidator = HKIDValidator();// Check is HKID Validate or not; HKID - U443902 wuth Specific Character 0
bool isIdValid = HKIDValidator().isHKIDValid('U443902', '0');
```#### Generate HKID
```dart
// Generate the Random Validate HKID with Eight or Nine digits
String hkid = HKIDValidator().genRanValidHKID(isEight: true);// Generate the Validate HKID with eight number
String hkid = HKIDValidator().genValidHKID(isEight: true);// Generate the Validate HKID with Nine number
String hkid = HKIDValidator().genValidHKID(isEight: false);```
```#### Add Parentheses at the last character
```dart
String hkid = hkid.withPARES();
```# [HKID Validator Demo](https://github.com/hkk97/hkid_validator/tree/master/example/)
The UI of HKID Validator Web App, was inspired by [icelam](https://github.com/icelam/hkid-generator).
A Flutter Web Demo for HKID Validator, this web demo is used to demonstrate the powerful of Flutter in Web Development and the usage of the packages called hkid_validator.