Ad

How To Create Input Mask In Text Field Of Flutter

- 1 answer

I am working on a project in flutter I want to mask the input so that the user won't input the information in wrong format, I tired to google is as well bit couldn't find anything helpful

Please guide me how to make the mask example given in figure

enter image description here

Ad

Answer

For input format you should use TextFormField with TextInputFormatter. Have you tried that?

A nice article about this can be found here. It also contains links to flutter API for more in-depth configurations.

Ad
source: stackoverflow.com
Ad