Hi
I have a problem with MaskFormatter
My mask formatter patter is ****/##/####
what means: number of the document / mounth / year
and the problem occur when I possess for example 1/01/01
and I would like to put this value into TextFormattedField form api (setText or setValue).
When I doing setText("10101") im getting 1010/1 /
One way is to put a spaces into first third places but then I have a spaces and instead of my placeholderCharacter("_") so then the text looks terrible: " 1/01/10".
I hope there is a other way to do this.
Please help.
Best regards.
I have a problem with MaskFormatter
My mask formatter patter is ****/##/####
what means: number of the document / mounth / year
and the problem occur when I possess for example 1/01/01
and I would like to put this value into TextFormattedField form api (setText or setValue).
When I doing setText("10101") im getting 1010/1 /
One way is to put a spaces into first third places but then I have a spaces and instead of my placeholderCharacter("_") so then the text looks terrible: " 1/01/10".
I hope there is a other way to do this.
Please help.
Best regards.