IP Address
wheel1992 opened this issue · comments
Hi, I would like to mask IP Address in TextFormField. The following code is partially written and does not work. Please advice.
final controller = new MaskedTextController(mask: '#.#.#.#',
translator: {
'#': new RegExp(r'^([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$')
});
...
For each value, the number should be between 0-255.
Hi,
This will not work.
Thinking in this case: If the user puts 1 2
the mask should be 1.2
or 12.
?
This is a custom mask intelligence that is not possible with any custom masks.
For now, I will add a label for improvement. It's a good idea to have some specific masks. It's in the roadmap.
Thanks for report and sorry for not solve you issue =/
@benhurott Thank you so much for your reply!
any solution for ip address mask
any update? is now 2022