Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecpf_cnpj_validator

Validate, format, strip and generate Brazilian CPF and CNPJ numbers.

pub.devRemove
credit_card_validator

Validates credit card numbers, expiration dates, and CVVs based on card type.

pub.devRemove
ScoresHealth5050
Maintenance00
Quality9696
Popularity7071 (best)
Community28 (best)11
Compatibility100100
UsageDownloads (30 days)30k (best)29k
Likes8191 (best)
Pub points150 / 160150 / 160
GitHub stars54 (best)35
MaintenanceLatest release2.0.0, 6 years ago2.1.0, 4 years ago (best)
Major versions in 12 months00
Contributors5 (best)2
PublisherUnverifiedUnverified
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple and straightforward static API methods.
  • Supports both validation and generation of CPF and CNPJ.
  • Null safety supported in version 2.0.0.
  • Supports 'potentially valid' input states for live UI feedback during typing.
  • Supports multiple popular credit card networks and custom card definitions.
Weaknesses
  • Limited in scope strictly to Brazilian CPF/CNPJ numbers.
  • No built-in UI form field widgets provided out of the box.
  • Does not verify card information with a bank or payment processor.
  • Limited documentation on all configuration options outside the basic README.
WarningsNone
  • Unverified publisher
cpf_cnpj_validator vs credit_card_validator: which Flutter package should you use? | pubscout