Mask - how to set text from the right side?

Joined
Dec 17, 2009
Messages
2
Reaction score
0
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top