edsonbonfim / form

A simple and powerful way to manipulate flutter forms. :rocket::zap:
https://edsonbonfim.github.io/form
MIT License
11 stars 4 forks source link

Add input formatters #1

Open allanwolski opened 4 years ago

allanwolski commented 4 years ago

Nice work, @edsonbonfim

I added support for inputFormatters, but it would be interesting to have predefined formatters like validators.

I would like to have formatters and validators for Brazilian CEP, CPF and CNPJ.

https://pub.dev/packages/brasil_fields https://pub.dev/packages/cpf_cnpj_validator

edsonbonfim commented 4 years ago

Hi @allanwolski :wave:

Thanks for opening an issue. Adding language-specific formatting can increase the package size and not all users will benefit. What we can do is create a separate package with these formatting rules, and integrate it with the main package! What do you think about this?

allanwolski commented 4 years ago

I think this would be useful for many people, since a large part of Flutter users come from Brazil. I also don't think it would increase the size of the package.

Can you also publish the form's "autovalidate" property?

guilhermedaldim commented 4 years ago

I also need this resource