cnpj_cpf_formatter 1.0.8 copy "cnpj_cpf_formatter: ^1.0.8" to clipboard
cnpj_cpf_formatter: ^1.0.8 copied to clipboard

This library gives you a formatter to CNPJ or CPF documents. Enjoy it!

This library helps with CNPJ and CPF formatter. Both of them are brazilian a documentation where CNPJ is a business document and CPF is a person document.

Usage #

A simple usage example:

CPF formatter #

    TextField(
        decoration: InputDecoration(
        labelText: 'CPF',
        helperText: 'just CPF formatting',
        ),
        inputFormatters: [
        CnpjCpfFormatter(
            eDocumentType: EDocumentType.CPF,
        )
        ],
    )

CNPJ formatter #

    TextField(
        decoration: InputDecoration(
        labelText: 'CNPJ',
        helperText: 'just CNPJ formatting',
        ),
        inputFormatters: [
        CnpjCpfFormatter(
            eDocumentType: EDocumentType.CNPJ,
        )
        ],
    )

CNPJ and CPF formatters in same field #

    TextField(
        decoration: InputDecoration(
        labelText: 'CNPJ/CPF',
        helperText: 'CNPJ and CPF formatting',
        ),
        inputFormatters: [
        CnpjCpfFormatter(
            eDocumentType: EDocumentType.BOTH,
        )
        ],
    )

Features and bugs #

Please file feature requests and bugs at the issue tracker.

4
likes
30
pub points
53%
popularity

Publisher

unverified uploader

This library gives you a formatter to CNPJ or CPF documents. Enjoy it!

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cnpj_cpf_helper, flutter

More

Packages that depend on cnpj_cpf_formatter