mask_text_input_formatter
mask_text_input_formatter copied to clipboard
why hidden char still exits?
code is:
var maskFormatter = new MaskTextInputFormatter(mask: '###', filter: { "#": RegExp(r'[0-9]') });
using
inputFormatters: [maskFormatter]
when input box typing "1234567890"
ok input box is only "123"
but when delete, 4567890 still exist (hidden), when i can try to delete numbers, After hidden numbers removed,
Able to delete this number "123".
Please solve.
Thanks.
UPDATE.
the second bug is,
using code
MaskTextInputFormatter(mask: '###'),
after clear Text Controller.clear()
TextBox is clear, then again start typing , Previous value is auto filling in the textbox.
when i remove this code MaskTextInputFormatter(mask: '###'),
No problem working fine.