masked_text 0.0.1 masked_text: ^0.0.1 copied to clipboard
A simple and basic masked text package.
masked_text #
A package for masked texts, so if you want a mask for phone, or zip code or any kind of mask, just use it :D
Getting Started #
It's very simple, it's a Widget as all the other ones.
new MaskedTextField(
maskedTextFieldController: _textCPFController,
mask: "xxx.xxx.xxx-xx",
maxLength: 14,
keyboardType: TextInputType.number,
inputDecoration: new InputDecoration(
hintText: "Digite seu CPF", labelText: "CPF"),
),
'x' is the normal char that your text will have.
this sample reproduces something like this in the end: 111.111.111-11
(if you type all '1' of course, hehehe)