ao_bi 0.2.1 copy "ao_bi: ^0.2.1" to clipboard
ao_bi: ^0.2.1 copied to clipboard

Validate Angolan Identity Card

ao_bi #

Validate Angolan Identity Card

Installation #

dependencies:
  ao_bi: ^0.2.1
  
  or

  ao_bi:
    git:
      url: https://github.com/srnunio/ao_bi

Usage #

Call the QR reader to scan the document and extract the data

void onScan() async {
  var result = await BIUtil.scan(
      title: "Scan my document", 
      context: context
  );
}

If you have your own QR reader and just want to process the data, simply call the check method.

void onScan() async {
  var result = await BIUtil.check("data");
}

To validate if a string corresponds to an Angolan ID number, simply call the isValid method.

void onCheckID() async {
  var result = BIUtil.isValidID('987654321LA009');
}

BIData is the type of return

{
  "ID": "ID",
  "NAME": "NAME",
  "PROVINCE": "PROVINCE",
  "GENDER": "GENDER",
  "MARITAL_STATUS": "MARITAL_STATUS",
  "BIRTHDAY": "BIRTHDAY",
  "DATE_OF_ISSUE": "DATE_OF_ISSUE",
  "EXPIRATION_DATE": "EXPIRATION_DATE"
}

NOTE: This package uses the qr_code_scanner library, so make sure to configure the necessary permissions to grant camera access

iOS Integration #


In order to use this plugin, add the following to your Info.plist file:

<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>This app needs camera access to scan QR codes</string>

Preview #



License #

bi_ao is available under the MIT license.

Support #

You liked this package? then give it a star. If you want to help then:

  • Start this repository
  • Send a Pull Request with new features
  • Share this package
  • Create issues if you find a Bug or want to suggest something
1
likes
140
points
41
downloads

Publisher

verified publisheredvaldomartins.dev

Weekly Downloads

Validate Angolan Identity Card

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, qr_code_scanner_plus

More

Packages that depend on ao_bi