Recently I've been working on two projects both of which required a screen that takes a four digit number as part of the verification/authentication process. Seeing as this is something I haven't done before and it looked quite simple, I thought it'l...

Markdown supported · ⌘↵ to post
😅 I actually didn't think of deleting that way when I used the 4 textfields. Makes sense 👍🏾.
Michele Volpato
I'm a full stack developer who loves to program using Flutter.
Very complicated case. I implemented this a year and a half ago. What I ended up doing was using 4 textfields, and checking after each change in each textfield, if the content is empty (a character was deleted) then go back to the previous one, while if there is a character, go to the next one.
It gave me headache.