Skip to content

pakdatakit_flutter 0.2.0

pakdatakit_flutter 0.2.0 on its registry

  • PakCheckoutForm and PakKycForm: 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 from Form, TextFormField, DropdownButtonFormField and Autocomplete, with onSubmitted(PakFormValues), onChanged, initialValues, decorate and submitBuilder.
  • Cascading province → district → tehsil and city suggestions limited to the province, from pakdatakit’s geo library; also available as PakLocation.
  • Urdu: locale: PakFormLocale.ur switches labels, placeholders, errors and hints to Urdu and lays the form out right to left; labels overrides any text (PakFormLabels).
  • Optional, non-blocking hints (hints: true): address completeness from scoreAddress, mobile number risk signals from phoneRiskSignals and a postal code from another city, in a polite live region. PakFormHints loads 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); hintsLoader replaces it.
  • PakValidators.passport() and PakValidators.vehiclePlate(), using validatePassport and validateVehiclePlate from pakdatakit 2.3.0.
  • Requires pakdatakit ^2.4.0 (for scoreAddress and phoneRiskSignals).