pakdatakit_flutter 0.2.0
pakdatakit_flutter: ^0.2.0 copied to clipboard
Flutter widgets for Pakistani data: CNIC, phone and IBAN fields that format as you type, form validators, checkout and KYC forms, and a Raast QR widget.
Changelog #
0.2.0 #
PakCheckoutFormandPakKycForm: ready checkout and KYC forms (full name, mobile number, province, district, optional tehsil, city with suggestions, address, nearby place, postal code, and a CNIC in the KYC form), built fromForm,TextFormField,DropdownButtonFormFieldandAutocomplete, withonSubmitted(PakFormValues),onChanged,initialValues,decorateandsubmitBuilder.- Cascading province → district → tehsil and city suggestions limited to the
province, from
pakdatakit's geo library; also available asPakLocation. - Urdu:
locale: PakFormLocale.urswitches labels, placeholders, errors and hints to Urdu and lays the form out right to left;labelsoverrides any text (PakFormLabels). - Optional, non-blocking hints (
hints: true): address completeness fromscoreAddress, mobile number risk signals fromphoneRiskSignalsand a postal code from another city, in a polite live region.PakFormHintsloads the quality library with a deferred import, so the post office directory is only loaded once hints are on (a separate file on the web);hintsLoaderreplaces it. PakValidators.passport()andPakValidators.vehiclePlate(), usingvalidatePassportandvalidateVehiclePlatefrompakdatakit2.3.0.- Requires
pakdatakit^2.4.0 (forscoreAddressandphoneRiskSignals).
0.1.0 #
Initial release, built on pakdatakit
2.2.0.
CnicInputFormatter,PhoneInputFormatterandIbanInputFormatter: format as you type (35202-1234567-1,0300-1234567,PK36 SCBL 0000 0011 2345 6702), keeping the caret after the same character. Backspace or Delete next to a separator removes the neighbouring character; pasted text and Urdu digits are handled.PakValidators.cnic,.phone,.iban,.ntn,.strnand.landlineforTextFormField.validator, with replaceable English messages.CnicField,PhoneFieldandIbanField: form fields with the right formatter and keyboard, anonStateChangedcallback with details once the value is valid, and errors shown only once the value is invalid (or the form is validated).RaastQr: a Raast person-to-person payment QR code for an IBAN, painted withCustomPaintfrom thecreateRaastP2PQrpayload.