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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top